abstract class DateRecurInterpreterPluginBase in Recurring Dates Field 3.1.x
Same name and namespace in other branches
- 8.2 src/Plugin/DateRecurInterpreterPluginBase.php \Drupal\date_recur\Plugin\DateRecurInterpreterPluginBase
- 3.x src/Plugin/DateRecurInterpreterPluginBase.php \Drupal\date_recur\Plugin\DateRecurInterpreterPluginBase
- 3.0.x src/Plugin/DateRecurInterpreterPluginBase.php \Drupal\date_recur\Plugin\DateRecurInterpreterPluginBase
Base class for date recur interpreter plugins.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
- class \Drupal\date_recur\Plugin\DateRecurInterpreterPluginBase implements DateRecurInterpreterPluginInterface uses PluginWithFormsTrait
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
Expanded class hierarchy of DateRecurInterpreterPluginBase
2 files declare their use of DateRecurInterpreterPluginBase
- RlInterpreter.php in src/
Plugin/ DateRecurInterpreter/ RlInterpreter.php - TestInterpreter.php in tests/
modules/ date_recur_interpreter_test/ src/ Plugin/ DateRecurInterpreter/ TestInterpreter.php
File
- src/
Plugin/ DateRecurInterpreterPluginBase.php, line 14
Namespace
Drupal\date_recur\PluginView source
abstract class DateRecurInterpreterPluginBase extends PluginBase implements DateRecurInterpreterPluginInterface {
use PluginWithFormsTrait;
/**
* {@inheritdoc}
*/
public function calculateDependencies() : array {
return [];
}
/**
* {@inheritdoc}
*/
public function getConfiguration() : array {
return $this->configuration;
}
/**
* {@inheritdoc}
*/
public function setConfiguration(array $configuration) : void {
$this->configuration = NestedArray::mergeDeep($this
->defaultConfiguration(), $configuration);
}
/**
* {@inheritdoc}
*/
public function defaultConfiguration() : array {
return [];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DateRecurInterpreterPluginBase:: |
public | function |
Calculates dependencies for the configured plugin. Overrides DependentPluginInterface:: |
1 |
DateRecurInterpreterPluginBase:: |
public | function |
Gets default configuration for this plugin. Overrides ConfigurableInterface:: |
2 |
DateRecurInterpreterPluginBase:: |
public | function |
Gets this plugin's configuration. Overrides ConfigurableInterface:: |
|
DateRecurInterpreterPluginBase:: |
public | function |
Sets the configuration for this plugin instance. Overrides ConfigurableInterface:: |
|
DateRecurInterpreterPluginInterface:: |
public | function | Interpret a set of rules in a language. | 2 |
DateRecurInterpreterPluginInterface:: |
public | function | The languages supported by this plugin. | 2 |
DependencySerializationTrait:: |
protected | property | ||
DependencySerializationTrait:: |
protected | property | ||
DependencySerializationTrait:: |
public | function | 2 | |
DependencySerializationTrait:: |
public | function | 2 | |
MessengerTrait:: |
protected | property | The messenger. | 27 |
MessengerTrait:: |
public | function | Gets the messenger. | 27 |
MessengerTrait:: |
public | function | Sets the messenger. | |
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:: |
2 |
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. | 98 |
PluginWithFormsTrait:: |
public | function | Implements \Drupal\Core\Plugin\PluginWithFormsInterface::getFormClass(). | |
PluginWithFormsTrait:: |
public | function | Implements \Drupal\Core\Plugin\PluginWithFormsInterface::hasFormClass(). | |
StringTranslationTrait:: |
protected | property | The string translation service. | 4 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. |