You are here

public function Permission::get in Organic groups 8

Returns the value for the given property.

Parameters

string $property: The property to return.

Return value

mixed The value.

Overrides PermissionInterface::get

10 calls to Permission::get()
GroupContentOperationPermission::getBundle in src/GroupContentOperationPermission.php
Returns the group content bundle ID to which this permission applies.
GroupContentOperationPermission::getEntityType in src/GroupContentOperationPermission.php
Returns the group content entity type ID to which this permission applies.
GroupContentOperationPermission::getOperation in src/GroupContentOperationPermission.php
Returns the operation to which this permission applies.
GroupContentOperationPermission::getOwner in src/GroupContentOperationPermission.php
Returns the owner scope of this permission.
GroupPermission::getApplicableRoles in src/GroupPermission.php
Returns the roles to which this permission can be applied.

... See full list

File

src/Permission.php, line 62

Class

Permission
Base class for OG permissions.

Namespace

Drupal\og

Code

public function get($property) {
  $property = $this
    ->lowerCamelize($property);
  if (!property_exists($this, $property)) {
    throw new \InvalidArgumentException("Invalid property {$property}.");
  }
  return $this->{$property};
}