public function TestEngineConfigurationAlter::alterConfiguration in Entity Print 8
Same name and namespace in other branches
- 8.2 tests/modules/entity_print_test/src/EventSubscriber/TestEngineConfigurationAlter.php \Drupal\entity_print_test\EventSubscriber\TestEngineConfigurationAlter::alterConfiguration()
Alter the configuration for our testpdf engine.
Parameters
\Symfony\Component\EventDispatcher\GenericEvent $event: The event object.
File
- tests/
modules/ entity_print_test/ src/ EventSubscriber/ TestEngineConfigurationAlter.php, line 22
Class
- TestEngineConfigurationAlter
- The TestEngineConfigurationAlter class.
Namespace
Drupal\entity_print_test\EventSubscriberCode
public function alterConfiguration(GenericEvent $event) {
if ($event
->getArgument('config')
->id() === 'testpdfengine') {
$event
->setArgument('configuration', [
'test_engine_suffix' => 'overridden',
] + $event
->getArgument('configuration'));
}
}