You are here

public function LayoutBuilder::__construct in Entity Usage 8.4

Constructs a new LayoutBuilder plugin instance.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\entity_usage\EntityUsageInterface $usage_service: The usage tracking service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The EntityTypeManager service.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The EntityFieldManager service.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The EntityRepositoryInterface service.

\Drupal\Core\Block\BlockManagerInterface $blockManager: Block manager.

Overrides EntityUsageBase::__construct

File

src/Plugin/EntityTrack/Track/LayoutBuilder.php, line 58

Class

LayoutBuilder
Tracks usage of entities related in Layout Builder layouts.

Namespace

Drupal\entity_usage\Plugin\EntityTrack\Track

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityUsageInterface $usage_service, EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, ConfigFactoryInterface $config_factory, EntityRepositoryInterface $entity_repository, BlockManagerInterface $blockManager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $usage_service, $entity_type_manager, $entity_field_manager, $config_factory, $entity_repository);
  $this->blockManager = $blockManager;
}