public function SimpleAccessPermissions::nodeTypePermissions in Simple Access 8.3
Returns an array of node type permissions.
Return value
array The node type permissions. @see \Drupal\user\PermissionHandlerInterface::getPermissions()
1 string reference to 'SimpleAccessPermissions::nodeTypePermissions'
File
- src/
SimpleAccessPermissions.php, line 20
Class
Namespace
Drupal\simple_accessCode
public function nodeTypePermissions() {
$perms = [];
// Generate node permissions for all node types.
foreach (NodeType::loadMultiple() as $type) {
$perms += $this
->buildPermissions($type);
}
return $perms;
}