public function SetFixedBlockDependency::__construct in Fixed Block Content 8
Constructs SetFixedBlockDependency object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Database\Connection $database: The primary database connection.
File
- src/
EventSubscriber/ SetFixedBlockDependency.php, line 42
Class
- SetFixedBlockDependency
- An event subscriber that sets the access dependency for fixed blocks.
Namespace
Drupal\fixed_block_content\EventSubscriberCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, Connection $database) {
$this->entityTypeManager = $entity_type_manager;
$this->database = $database;
}