You are here

interface PluginLabelDefinitionInterface in Plugin 8.2

Defines a plugin definition that includes a label.

Hierarchy

Expanded class hierarchy of PluginLabelDefinitionInterface

All classes that implement PluginLabelDefinitionInterface

12 files declare their use of PluginLabelDefinitionInterface
ListPlugins.php in src/Controller/ListPlugins.php
ListPluginsTest.php in tests/src/Unit/Controller/ListPluginsTest.php
PluginHierarchyTrait.php in src/PluginHierarchyTrait.php
PluginHierarchyTraitTest.php in tests/src/Unit/PluginHierarchyTraitTest.php
PluginId.php in src/Plugin/views/filter/PluginId.php

... See full list

File

src/PluginDefinition/PluginLabelDefinitionInterface.php, line 10

Namespace

Drupal\plugin\PluginDefinition
View source
interface PluginLabelDefinitionInterface extends PluginDefinitionInterface {

  /**
   * Sets the human-readable plugin label.
   *
   * @param \Drupal\Core\StringTranslation\TranslatableString|string $label
   *   The label.
   *
   * @return $this
   */
  public function setLabel($label);

  /**
   * Gets the human-readable plugin label.
   *
   * @return \Drupal\Core\StringTranslation\TranslatableString|string|null
   *   The label or NULL if there is none.
   */
  public function getLabel();

}

Members

Namesort descending Modifiers Type Description Overrides
PluginDefinitionInterface::getClass public function Gets the class. 1
PluginDefinitionInterface::getId public function Gets the plugin ID. 2
PluginDefinitionInterface::getProvider public function Gets the plugin provider. Overrides PluginDefinitionInterface::getProvider 2
PluginDefinitionInterface::id public function Gets the unique identifier of the plugin. 1
PluginDefinitionInterface::mergeDefaultDefinition public function Merges another definition into this one, using the other for defaults.
PluginDefinitionInterface::mergeOverrideDefinition public function Merges another definition into this one, using the other for overrides.
PluginDefinitionInterface::setClass public function Sets the class. 1
PluginDefinitionInterface::setId public function Sets the plugin ID. 2
PluginDefinitionInterface::setProvider public function Sets the plugin provider. 2
PluginLabelDefinitionInterface::getLabel public function Gets the human-readable plugin label. 1
PluginLabelDefinitionInterface::setLabel public function Sets the human-readable plugin label. 1