function NodePermissions::nodeTypePermissions

Same name in other branches
  1. 9 core/modules/node/src/NodePermissions.php \Drupal\node\NodePermissions::nodeTypePermissions()
  2. 8.9.x core/modules/node/src/NodePermissions.php \Drupal\node\NodePermissions::nodeTypePermissions()
  3. 11.x core/modules/node/src/NodePermissions.php \Drupal\node\NodePermissions::nodeTypePermissions()

Returns an array of node type permissions.

Return value

array The node type permissions. @see \Drupal\user\PermissionHandlerInterface::getPermissions()

1 string reference to 'NodePermissions::nodeTypePermissions'
node.permissions.yml in core/modules/node/node.permissions.yml
core/modules/node/node.permissions.yml

File

core/modules/node/src/NodePermissions.php, line 23

Class

NodePermissions
Provides dynamic permissions for nodes of different types.

Namespace

Drupal\node

Code

public function nodeTypePermissions() {
    return $this->generatePermissions(NodeType::loadMultiple(), [
        $this,
        'buildPermissions',
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.