You are here

class LogTemplate in Commerce Core 8.2

Hierarchy

Expanded class hierarchy of LogTemplate

2 files declare their use of LogTemplate
LogTemplateManager.php in modules/log/src/LogTemplateManager.php
LogTemplateTest.php in modules/log/tests/src/Unit/LogTemplateTest.php

File

modules/log/src/Plugin/LogTemplate/LogTemplate.php, line 7

Namespace

Drupal\commerce_log\Plugin\LogTemplate
View source
class LogTemplate extends PluginBase implements LogTemplateInterface {

  /**
   * {@inheritdoc}
   */
  public function getId() {
    return $this->pluginDefinition['id'];
  }

  /**
   * {@inheritdoc}
   */
  public function getLabel() {
    return $this->pluginDefinition['label'];
  }

  /**
   * {@inheritdoc}
   */
  public function getCategory() {
    return $this->pluginDefinition['category'];
  }

  /**
   * {@inheritdoc}
   */
  public function getTemplate() {
    return $this->pluginDefinition['template'];
  }

}

Members

Namesort descending Modifiers Type Description Overrides
LogTemplate::getCategory public function Gets the template category. Overrides LogTemplateInterface::getCategory
LogTemplate::getId public function Gets the template ID. Overrides LogTemplateInterface::getId
LogTemplate::getLabel public function Gets the translated label. Overrides LogTemplateInterface::getLabel
LogTemplate::getTemplate public function Gets the template. Overrides LogTemplateInterface::getTemplate
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$pluginDefinition protected property The plugin implementation definition. 1
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 3
PluginBase::getPluginId public function Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface::getPluginId
PluginBase::isConfigurable public function Determines if the plugin is configurable.
PluginBase::__construct public function Constructs a \Drupal\Component\Plugin\PluginBase object. 92