You are here

private function PermissionsGenerator::buildPermissions in Entity Construction Kit (ECK) 8

Builds a standard list of entity permissions for a given type.

Parameters

\Drupal\eck\Entity\EckEntityType $eck_type: The entity type.

Return value

array An array of permissions.

1 call to PermissionsGenerator::buildPermissions()
PermissionsGenerator::entityPermissions in src/PermissionsGenerator.php
Returns an array of entity type permissions.

File

src/PermissionsGenerator.php, line 42

Class

PermissionsGenerator
Defines dynamic permissions.

Namespace

Drupal\eck

Code

private function buildPermissions(EckEntityType $eck_type) {
  return array_merge($this
    ->getCreatePermission($eck_type), $this
    ->getEditPermissions($eck_type), $this
    ->getListingPermission($eck_type));
}