class WebformEntityPrintWebformExporterDeriver in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_entity_print/src/Plugin/Derivative/WebformEntityPrintWebformExporterDeriver.php \Drupal\webform_entity_print\Plugin\Derivative\WebformEntityPrintWebformExporterDeriver
Provides webform entity print attachment webform exporter 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\Plugin\Derivative\WebformEntityPrintWebformExporterDeriver
- class \Drupal\webform_entity_print\Plugin\Derivative\WebformEntityPrintWebformDeriverBase implements ContainerDeriverInterface uses StringTranslationTrait
Expanded class hierarchy of WebformEntityPrintWebformExporterDeriver
See also
\Drupal\webform_entity_print\Plugin\WebformExporter\WebformEntityPrintWebformExporter
File
- modules/
webform_entity_print/ src/ Plugin/ Derivative/ WebformEntityPrintWebformExporterDeriver.php, line 10
Namespace
Drupal\webform_entity_print\Plugin\DerivativeView source
class WebformEntityPrintWebformExporterDeriver 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]['id'] = $id;
$this->derivatives[$id]['label'] = $this
->t('@label documents', $t_args);
$this->derivatives[$id]['description'] = $this
->t('Exports results as @label documents', $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. | 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. | |
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. | |
WebformEntityPrintWebformExporterDeriver:: |
public | function |
Gets the definition of all derivatives of a base plugin. Overrides WebformEntityPrintWebformDeriverBase:: |