public static function EntityUsageTrackBase::create in Entity Usage 8
Same name and namespace in other branches
- 8.2 src/EntityUsageTrackBase.php \Drupal\entity_usage\EntityUsageTrackBase::create()
- 8.3 src/EntityUsageTrackBase.php \Drupal\entity_usage\EntityUsageTrackBase::create()
Creates an instance of the plugin.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: The container to pull out services used in the plugin.
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.
Return value
static Returns an instance of this plugin.
Overrides ContainerFactoryPluginInterface::create
3 methods override EntityUsageTrackBase::create()
- EmbedBase::create in src/
Plugin/ EntityUsage/ Track/ EmbedBase.php - Creates an instance of the plugin.
- EntityReference::create in src/
Plugin/ EntityUsage/ Track/ EntityReference.php - Creates an instance of the plugin.
- Link::create in src/
Plugin/ EntityUsage/ Track/ Link.php - Creates an instance of the plugin.
File
- src/
EntityUsageTrackBase.php, line 48
Class
- EntityUsageTrackBase
- Base implementation for track plugins.
Namespace
Drupal\entity_usageCode
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'));
}