You are here

interface MgvPluginManagerInterface in More Global Variables 8

Interface MgvPluginManagerInterface.

@package Drupal\mgv

Hierarchy

Expanded class hierarchy of MgvPluginManagerInterface

All classes that implement MgvPluginManagerInterface

File

src/MgvPluginManagerInterface.php, line 13

Namespace

Drupal\mgv
View source
interface MgvPluginManagerInterface extends PluginManagerInterface {

  /**
   * Returns all the variables.
   *
   * @return array[mixed]
   *   Variables list.
   */
  public function getVariables();

  /**
   * Create namespaced value of given global variable id and instance.
   *
   * @param string $plugin_id
   *   Plugin id.
   * @param \Drupal\mgv\Plugin\GlobalVariableInterface $variable
   *   Plugin instance.
   *
   * @return array|mixed
   *   Generated value.
   */
  public function getNamespacedValue($plugin_id, GlobalVariableInterface $variable);

}

Members

Namesort descending Modifiers Type Description Overrides
DiscoveryInterface::getDefinition public function Gets a specific plugin definition. 4
DiscoveryInterface::getDefinitions public function Gets the definition of all plugins for this type. 3
DiscoveryInterface::hasDefinition public function Indicates if a specific plugin definition exists. 2
FactoryInterface::createInstance public function Creates a pre-configured instance of a plugin. 7
MapperInterface::getInstance public function Gets a preconfigured instance of a plugin. 4
MgvPluginManagerInterface::getNamespacedValue public function Create namespaced value of given global variable id and instance. 1
MgvPluginManagerInterface::getVariables public function Returns all the variables. 1