You are here

public static function EntityUsageBase::create in Entity Usage 8.4

2 methods override EntityUsageBase::create()
HtmlLink::create in src/Plugin/EntityTrack/Track/HtmlLink.php
LayoutBuilder::create in src/Plugin/EntityTrack/Track/LayoutBuilder.php

File

src/EntityUsageBase.php, line 72

Class

EntityUsageBase
Base implementation for track plugins.

Namespace

Drupal\entity_usage

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'));
}