public function PrintableFormatBase::setConfiguration in Printer and PDF versions for Drupal 8+ 8
Same name and namespace in other branches
- 2.x src/Plugin/PrintableFormatBase.php \Drupal\printable\Plugin\PrintableFormatBase::setConfiguration()
Sets the configuration for this plugin instance.
Parameters
array $configuration: An associative array containing the plugin's configuration.
Overrides ConfigurablePluginInterface::setConfiguration
2 calls to PrintableFormatBase::setConfiguration()
- PdfFormat::submitConfigurationForm in modules/
printable_pdf/ src/ Plugin/ PrintableFormat/ PdfFormat.php - Form submission handler.
- PrintFormat::submitConfigurationForm in src/
Plugin/ PrintableFormat/ PrintFormat.php - Form submission handler.
File
- src/
Plugin/ PrintableFormatBase.php, line 122
Class
- PrintableFormatBase
- Provides a base class for Filter plugins.
Namespace
Drupal\printable\PluginCode
public function setConfiguration(array $configuration) {
$this->configuration = $configuration;
$this->configFactory
->getEditable('printable.format')
->set($this
->getPluginId(), $this->configuration)
->save();
}