You are here

ConfigPagesContextBase.php in Config Pages 8

Same filename and directory in other branches
  1. 8.3 src/ConfigPagesContextBase.php
  2. 8.2 src/ConfigPagesContextBase.php

File

src/ConfigPagesContextBase.php
View source
<?php

namespace Drupal\config_pages;

use Drupal\Component\Plugin\PluginBase;
class ConfigPagesContextBase extends PluginBase implements ConfigPagesContextInterface {

  /**
   * Return the label of the context.
   *
   * @return string
   */
  public function getLabel() {
    return $this->pluginDefinition['label'];
  }

  /**
   * Return the value of the context.
   * Needs to be overriden for concrete context.
   *
   * @return mixed
   */
  public static function getValue() {
    return '';
  }

}

Classes