You are here

public static function LayoutBuilder::create in Entity Usage 8.4

Overrides EntityUsageBase::create

File

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

Class

LayoutBuilder
Tracks usage of entities related in Layout Builder layouts.

Namespace

Drupal\entity_usage\Plugin\EntityTrack\Track

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('entity_usage.usage'), $container
    ->get('entity_type.manager'), $container
    ->get('entity_field.manager'), $container
    ->get('config.factory'), $container
    ->get('entity.repository'), $container
    ->get('plugin.manager.block'));
}