/** * Returns an array of node type permissions. * * @return array * The RdfEntity type permissions. */ public function rdfTypePermissions() { $perms = array(); // Generate node permissions for all node types. foreach (RdfEntityType::loadMultiple() as $type) { $perms += $this->buildPermissions($type); } return $perms; }
/** * Returns an array of permissions related to Rdf types. * * The Joinup profile alters a new form display mode into the Rdf entity type, * and this provides permissions to use those forms for each type. * * @return array * The permissions. * * @see \Drupal\user\PermissionHandlerInterface::getPermissions() * @see joinup_entity_type_alter() */ public function rdfTypePermissions() { $perms = []; // Generate permissions to propose rdf entities of all types. foreach (RdfEntityType::loadMultiple() as $type) { $perms += $this->buildProposeRdfTypePermission($type); } return $perms; }