You are here

class JohnTest in Plug 7

Class John @package Drupal\plug_example\Plugin\name

Plugin annotation


@Name(
  id = "john_test",
  company = FALSE
)

Hierarchy

Expanded class hierarchy of JohnTest

File

modules/plug_example/src/Plugin/name/JohnTest.php, line 19
Contains Drupal\plug_example\Plugin\name\JohnTest

Namespace

Drupal\plug_example\Plugin\name
View source
class JohnTest extends John {

  /**
   * Overrides NameBase::t().
   *
   * Overrides the translation method to avoid bootstrap.
   */
  protected static function t($string, array $args = array(), array $options = array()) {
    return $string;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
John::$name protected property The name. Overrides NameBase::$name
JohnTest::t protected static function Overrides NameBase::t(). Overrides NameBase::t
NameBase::displayName public function Displays a name. Overrides NameInterface::displayName
PluginBase::$configuration protected property Configuration information passed into the plugin.
PluginBase::$pluginDefinition protected property The plugin implementation definition.
PluginBase::$pluginId protected property The plugin_id.
PluginBase::DERIVATIVE_SEPARATOR constant A string which is used to separate base plugin IDs from the derivative ID.
PluginBase::getBaseId public function Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface::getBaseId
PluginBase::getDerivativeId public function Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface::getDerivativeId
PluginBase::getPluginDefinition public function Gets the definition of the plugin implementation. Overrides PluginInspectionInterface::getPluginDefinition
PluginBase::getPluginId public function Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface::getPluginId
PluginBase::__construct public function Constructs a Drupal\Component\Plugin\PluginBase object. 1