You are here

protected function AccessControlHandler::blockContentTypes in Block Content Permissions 8

Returns the block content types.

Return value

array The block content types.

1 call to AccessControlHandler::blockContentTypes()
AccessControlHandler::blockContentAddPageAccess in src/AccessControlHandler.php
Access check for the block content add page.

File

src/AccessControlHandler.php, line 76

Class

AccessControlHandler
Controller for the block content permissions.

Namespace

Drupal\block_content_permissions

Code

protected function blockContentTypes() {
  if (!$this->blockContentTypes) {
    $this->blockContentTypes = \Drupal::entityQuery('block_content_type')
      ->execute();
  }
  return $this->blockContentTypes;
}