You are here

interface DefaultPluginResolverInterface in Plugin 8.2

Defines a default plugin resolver.

Hierarchy

Expanded class hierarchy of DefaultPluginResolverInterface

All classes that implement DefaultPluginResolverInterface

3 files declare their use of DefaultPluginResolverInterface
AdvancedPluginSelectorBase.php in src/Plugin/Plugin/PluginSelector/AdvancedPluginSelectorBase.php
PluginSelectorBase.php in src/Plugin/Plugin/PluginSelector/PluginSelectorBase.php
PluginSelectorBaseTestBase.php in tests/src/Unit/Plugin/Plugin/PluginSelector/PluginSelectorBaseTestBase.php

File

src/DefaultPluginResolver/DefaultPluginResolverInterface.php, line 10

Namespace

Drupal\plugin\DefaultPluginResolver
View source
interface DefaultPluginResolverInterface {

  /**
   * Creates a default plugin instance of a given plugin type.
   *
   * @param \Drupal\plugin\PluginType\PluginTypeInterface
   *
   * @return \Drupal\Component\Plugin\PluginInspectionInterface|null
   *   A plugin instance or NULL of no default could be created.
   */
  public function createDefaultPluginInstance(PluginTypeInterface $plugin_type);

}

Members

Namesort descending Modifiers Type Description Overrides
DefaultPluginResolverInterface::createDefaultPluginInstance public function Creates a default plugin instance of a given plugin type. 1