public function Permission::set in Organic groups 8
Sets the value for the given property.
Parameters
string $property: The name of the property to set.
mixed $value: The value to set.
Overrides PermissionInterface::set
11 calls to Permission::set()
- GroupContentOperationPermission::setBundle in src/
GroupContentOperationPermission.php - Sets the group content bundle ID to which this permission applies.
- GroupContentOperationPermission::setEntityType in src/
GroupContentOperationPermission.php - Sets the group content entity type ID to which this permission applies.
- GroupContentOperationPermission::setOperation in src/
GroupContentOperationPermission.php - Sets the operation to which this permission applies.
- GroupContentOperationPermission::setOwner in src/
GroupContentOperationPermission.php - Sets the owner scope of this permission.
- GroupPermission::setApplicableRoles in src/
GroupPermission.php - Returns the roles to which this permission can be applied.
File
- src/
Permission.php, line 73
Class
- Permission
- Base class for OG permissions.
Namespace
Drupal\ogCode
public function set($property, $value) {
$property = $this
->lowerCamelize($property);
$this
->validate($property, $value);
$this->{$property} = $value;
}