function RecipeIsApplyingTestSubscriber::onConfigSave
Records the isApplying flag when the recipe's configuration is saved.
Parameters
\Drupal\Core\Config\ConfigCrudEvent $event: The configuration event.
File
-
core/
modules/ system/ tests/ modules/ recipe_is_applying_test/ src/ EventSubscriber/ RecipeIsApplyingTestSubscriber.php, line 28
Class
- RecipeIsApplyingTestSubscriber
- Records the isApplying flag when recipe-provided configuration is saved.
Namespace
Drupal\recipe_is_applying_test\EventSubscriberCode
public function onConfigSave(ConfigCrudEvent $event) : void {
if ($event->getConfig()
->getName() === 'recipe_is_applying_test.settings') {
$this->keyValueFactory
->get('recipe_is_applying_test')
->set('config_save', RecipeRunner::isApplying());
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.