You are here

interface PluginTypeManagerInterface in Plugin 8.2

Defines a plugin type manager.

Hierarchy

Expanded class hierarchy of PluginTypeManagerInterface

All classes that implement PluginTypeManagerInterface

11 files declare their use of PluginTypeManagerInterface
ListPluginTypes.php in src/Controller/ListPluginTypes.php
ListPluginTypesTest.php in tests/src/Unit/Controller/ListPluginTypesTest.php
PluginCollectionItemDeriver.php in src/Plugin/Field/FieldType/PluginCollectionItemDeriver.php
PluginCollectionItemDeriverTest.php in tests/src/Unit/Plugin/Field/FieldType/PluginCollectionItemDeriverTest.php
PluginCommands.php in src/Commands/PluginCommands.php

... See full list

File

src/PluginType/PluginTypeManagerInterface.php, line 8

Namespace

Drupal\plugin\PluginType
View source
interface PluginTypeManagerInterface {

  /**
   * Checks whether a plugin type is known.
   *
   * @param string $id
   *   The plugin type's ID.
   *
   * @return bool
   */
  public function hasPluginType($id);

  /**
   * Gets a known plugin type.
   *
   * @param string $id
   *   The plugin type's ID.
   *
   * @return \Drupal\plugin\PluginType\PluginTypeInterface
   *
   * @throws \InvalidArgumentException
   *   Thrown if the plugin type is unknown.
   */
  public function getPluginType($id);

  /**
   * Gets the known plugin types.
   *
   * @return \Drupal\plugin\PluginType\PluginTypeInterface[]
   */
  public function getPluginTypes();

}

Members

Namesort descending Modifiers Type Description Overrides
PluginTypeManagerInterface::getPluginType public function Gets a known plugin type. 1
PluginTypeManagerInterface::getPluginTypes public function Gets the known plugin types. 1
PluginTypeManagerInterface::hasPluginType public function Checks whether a plugin type is known. 1