Skip to content
Snippets Groups Projects
Commit 9b8856b7 authored by jaapjansma's avatar jaapjansma
Browse files

Merge branch 'join-userdata' into 'main'

Allow setting userdata in Join API.

See merge request !1
parents e84a57ac 16ff3ee0
Branches main
Tags 1.0.5
1 merge request!1Allow setting userdata in Join API.
......@@ -167,4 +167,33 @@ class Join extends AbstractBBBAPi {
*/
protected $enforceLayout;
/**
* @var array<string,mixed>
*/
protected $_userdata = [];
/**
* @param array<string,mixed>
*/
public function setUserdata(array $userdata): self
{
$this->_userdata = $userdata;
return $this;
}
/**
* {@inheritDoc}
*/
public function getParams()
{
$params = parent::getParams();
// Add userdata
foreach ($this->_userdata as $key => $value) {
$params[sprintf('userdata-%s', $key)] = $value;
}
return $params;
}
}
......@@ -13,8 +13,8 @@
<url desc="Documentation">https://civicrm.org/extensions/big-blue-button-connector</url>
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2025-03-14</releaseDate>
<version>1.0.4</version>
<releaseDate>2025-04-11</releaseDate>
<version>1.0.5</version>
<develStage>alpha</develStage>
<compatibility>
<ver>5.40</ver>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment