You are here

public function DefaultPluginResolverInterface::createDefaultPluginInstance in Plugin 8.2

Creates a default plugin instance of a given plugin type.

Parameters

\Drupal\plugin\PluginType\PluginTypeInterface:

Return value

\Drupal\Component\Plugin\PluginInspectionInterface|null A plugin instance or NULL of no default could be created.

1 method overrides DefaultPluginResolverInterface::createDefaultPluginInstance()
EventBasedDefaultPluginResolver::createDefaultPluginInstance in src/DefaultPluginResolver/EventBasedDefaultPluginResolver.php
Creates a default plugin instance of a given plugin type.

File

src/DefaultPluginResolver/DefaultPluginResolverInterface.php, line 20

Class

DefaultPluginResolverInterface
Defines a default plugin resolver.

Namespace

Drupal\plugin\DefaultPluginResolver

Code

public function createDefaultPluginInstance(PluginTypeInterface $plugin_type);