function BlockContentPermissions::blockTypePermissions

Same name and namespace in other branches
  1. 10 core/modules/block_content/src/BlockContentPermissions.php \Drupal\block_content\BlockContentPermissions::blockTypePermissions()

Build permissions for each block type.

Return value

array The block type permissions.

1 string reference to 'BlockContentPermissions::blockTypePermissions'
block_content.permissions.yml in core/modules/block_content/block_content.permissions.yml
core/modules/block_content/block_content.permissions.yml

File

core/modules/block_content/src/BlockContentPermissions.php, line 46

Class

BlockContentPermissions
Provide dynamic permissions for blocks of different types.

Namespace

Drupal\block_content

Code

public function blockTypePermissions() {
    return $this->generatePermissions($this->entityTypeManager
        ->getStorage('block_content_type')
        ->loadMultiple(), [
        $this,
        'buildPermissions',
    ]);
}

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