public function Permissions::get in Block Access 8
Gets permissions.
Return value
array Array of permissions as per permissions.yml format.
1 string reference to 'Permissions::get'
File
- src/
Permissions.php, line 22
Class
- Permissions
- Defines a class for generating block content permissions per type.
Namespace
Drupal\block_accessCode
public function get() {
$permissions = [];
// Generate permissions for all block types types.
foreach (BlockContentType::loadMultiple() as $type) {
$permissions += $this
->buildPermissions($type);
}
return $permissions;
}