class WebformEntityPrintAttachmentDeriver in Webform 8.5
Same name and namespace in other branches
- 6.x modules/webform_entity_print_attachment/src/Plugin/Derivative/WebformEntityPrintAttachmentDeriver.php \Drupal\webform_entity_print_attachment\Plugin\Derivative\WebformEntityPrintAttachmentDeriver
Provides webform entity print attachment webform element derivatives.
Hierarchy
- class \Drupal\Component\Plugin\Derivative\DeriverBase implements DeriverInterface
- class \Drupal\webform_entity_print\Plugin\Derivative\WebformEntityPrintWebformDeriverBase implements ContainerDeriverInterface uses StringTranslationTrait
- class \Drupal\webform_entity_print_attachment\Plugin\Derivative\WebformEntityPrintAttachmentDeriver
- class \Drupal\webform_entity_print\Plugin\Derivative\WebformEntityPrintWebformDeriverBase implements ContainerDeriverInterface uses StringTranslationTrait
Expanded class hierarchy of WebformEntityPrintAttachmentDeriver
See also
\Drupal\webform_entity_print_attachment\Plugin\WebformElement\WebformEntityPrintAttachmentWebformElement
File
- modules/
webform_entity_print_attachment/ src/ Plugin/ Derivative/ WebformEntityPrintAttachmentDeriver.php, line 12
Namespace
Drupal\webform_entity_print_attachment\Plugin\DerivativeView source
class WebformEntityPrintAttachmentDeriver extends WebformEntityPrintWebformDeriverBase {
/**
* {@inheritdoc}
*/
public function getDerivativeDefinitions($base_plugin_definition) {
$definitions = $this
->getDefinitions();
foreach ($definitions as $id => $definition) {
$t_args = [
'@label' => $definition['label'],
];
$this->derivatives[$id] = $base_plugin_definition;
$this->derivatives[$id]['label'] = $this
->t('Attachment @label', $t_args);
$this->derivatives[$id]['description'] = $this
->t('Generates a @label attachment.', $t_args);
}
return $this->derivatives;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DeriverBase:: |
protected | property | List of derivative definitions. | 1 |
DeriverBase:: |
public | function |
Gets the definition of a derivative plugin. Overrides DeriverInterface:: |
|
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
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. | |
WebformEntityPrintAttachmentDeriver:: |
public | function |
Gets the definition of all derivatives of a base plugin. Overrides WebformEntityPrintWebformDeriverBase:: |
|
WebformEntityPrintWebformDeriverBase:: |
protected | property | The entity print export type manager. | |
WebformEntityPrintWebformDeriverBase:: |
public static | function |
Creates a new class instance. Overrides ContainerDeriverInterface:: |
|
WebformEntityPrintWebformDeriverBase:: |
protected | function | Get export type definitions. | |
WebformEntityPrintWebformDeriverBase:: |
public | function | Constructs new WebformEntityPrintWebformDeriverBase. |