public function WebformAccessGroup::addAdminId in Webform 8.5
Same name and namespace in other branches
- 6.x modules/webform_access/src/Entity/WebformAccessGroup.php \Drupal\webform_access\Entity\WebformAccessGroup::addAdminId()
Add admin user id to webform access group.
Parameters
int $uid: A admin user id.
Return value
$this
Overrides WebformAccessGroupInterface::addAdminId
File
- modules/
webform_access/ src/ Entity/ WebformAccessGroup.php, line 217
Class
- WebformAccessGroup
- Defines the webform access group entity.
Namespace
Drupal\webform_access\EntityCode
public function addAdminId($uid) {
if (!in_array($uid, $this->adminIds)) {
$this->adminIds[] = $uid;
}
return $this;
}