You are here

interface ConfigPagesContextInterface in Config Pages 8.3

Same name and namespace in other branches
  1. 8 src/ConfigPagesContextInterface.php \Drupal\config_pages\ConfigPagesContextInterface
  2. 8.2 src/ConfigPagesContextInterface.php \Drupal\config_pages\ConfigPagesContextInterface

Provides an interface defining a context config page.

Hierarchy

Expanded class hierarchy of ConfigPagesContextInterface

All classes that implement ConfigPagesContextInterface

File

src/ConfigPagesContextInterface.php, line 10

Namespace

Drupal\config_pages
View source
interface ConfigPagesContextInterface extends PluginInspectionInterface {

  /**
   * Return the label of the context.
   *
   * @return string
   *   Return label.
   */
  public function getLabel();

  /**
   * Get the value of the context.
   *
   * @return mixed
   *   Return value of the context.
   */
  public function getValue();

  /**
   * Get available links to switch on given context.
   *
   * @return array
   *   Return array of available links to switch on given context.
   */
  public function getLinks();

}

Members

Namesort descending Modifiers Type Description Overrides
ConfigPagesContextInterface::getLabel public function Return the label of the context. 1
ConfigPagesContextInterface::getLinks public function Get available links to switch on given context. 1
ConfigPagesContextInterface::getValue public function Get the value of the context. 1
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2