class AcmeTest in Plug 7
Class Acme @package Drupal\plug_example\Plugin\name
Plugin annotation
@Name(
id = "acme_test",
company = TRUE
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\plug_example\Plugin\name\NameBase implements NameInterface
- class \Drupal\plug_example\Plugin\name\Acme implements NameInterface
- class \Drupal\plug_example\Plugin\name\AcmeTest
- class \Drupal\plug_example\Plugin\name\Acme implements NameInterface
- class \Drupal\plug_example\Plugin\name\NameBase implements NameInterface
Expanded class hierarchy of AcmeTest
File
- modules/
plug_example/ src/ Plugin/ name/ AcmeTest.php, line 19 - Contains Drupal\plug_example\Plugin\name\AcmeTest
Namespace
Drupal\plug_example\Plugin\nameView source
class AcmeTest extends Acme {
/**
* Overrides NameBase::t().
*
* Overrides the translation method to avoid bootstrap.
*/
protected static function t($string, array $args = array(), array $options = array()) {
return $string;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Acme:: |
protected | property |
The name. Overrides NameBase:: |
|
AcmeTest:: |
protected static | function |
Overrides NameBase::t(). Overrides NameBase:: |
|
NameBase:: |
public | function |
Displays a name. Overrides NameInterface:: |
|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | |
PluginBase:: |
protected | property | The plugin implementation definition. | |
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:: |
|
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Constructs a Drupal\Component\Plugin\PluginBase object. | 1 |