private function PermissionsGenerator::getListingPermission in Entity Construction Kit (ECK) 8
Retrieves the listing permission for a given entity type.
Parameters
\Drupal\eck\Entity\EckEntityType $entity_type: The entity type.
Return value
array The listing permission.
1 call to PermissionsGenerator::getListingPermission()
- PermissionsGenerator::buildPermissions in src/
PermissionsGenerator.php - Builds a standard list of entity permissions for a given type.
File
- src/
PermissionsGenerator.php, line 59
Class
- PermissionsGenerator
- Defines dynamic permissions.
Namespace
Drupal\eckCode
private function getListingPermission(EckEntityType $entity_type) {
return [
"access {$entity_type->id()} entity listing" => [
'title' => $this
->t('Access %type_name listing page', [
'%type_name' => $entity_type
->label(),
]),
],
];
}