You are here

public function ParagraphAccessControlHandler::__construct in Paragraphs 8

Constructs a TranslatorAccessControlHandler object.

Parameters

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

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config object factory.

Overrides EntityAccessControlHandler::__construct

File

src/ParagraphAccessControlHandler.php, line 36

Class

ParagraphAccessControlHandler
Access controller for the paragraphs entity.

Namespace

Drupal\paragraphs

Code

public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory) {
  parent::__construct($entity_type);
  $this->configFactory = $config_factory;
}