Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. BlockContentAccessControlHandler.php

function BlockContentAccessControlHandler::__construct

BlockContentAccessControlHandler constructor.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.

\Symfony\Contracts\EventDispatcher\EventDispatcherInterface $dispatcher: The event dispatcher.

Overrides EntityAccessControlHandler::__construct

File

core/modules/block_content/src/BlockContentAccessControlHandler.php, line 39

Class

BlockContentAccessControlHandler
Defines the access control handler for the content block entity type.

Namespace

Drupal\block_content

Code

public function __construct(EntityTypeInterface $entity_type, EventDispatcherInterface $dispatcher) {
    parent::__construct($entity_type);
    $this->eventDispatcher = $dispatcher;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal