You are here

public function ResolveDefaultPlugin::setDefaultPluginInstance in Plugin 8.2

Sets an the default plugin instance.

Parameters

\Drupal\Component\Plugin\PluginInspectionInterface $default_plugin_instance:

Return value

$this

File

src/Event/ResolveDefaultPlugin.php, line 67

Class

ResolveDefaultPlugin
Provides an event that is dispatched when the a default plugin instance is resolved.

Namespace

Drupal\plugin\Event

Code

public function setDefaultPluginInstance(PluginInspectionInterface $default_plugin_instance) {
  $this->defaultPluginInstance = $default_plugin_instance;
  return $this;
}