class LogTemplate in Commerce Core 8.2
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\commerce_log\Plugin\LogTemplate\LogTemplate implements LogTemplateInterface
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\LogTemplateView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LogTemplate:: |
public | function |
Gets the template category. Overrides LogTemplateInterface:: |
|
LogTemplate:: |
public | function |
Gets the template ID. Overrides LogTemplateInterface:: |
|
LogTemplate:: |
public | function |
Gets the translated label. Overrides LogTemplateInterface:: |
|
LogTemplate:: |
public | function |
Gets the template. Overrides LogTemplateInterface:: |
|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
PluginBase:: |
public | function | Constructs a \Drupal\Component\Plugin\PluginBase object. | 92 |