public function ConfigurationUpdateSubscriber::onConfigurationUpdate in Update helper 2.x
Same name and namespace in other branches
- 8 modules/update_helper_checklist/src/Events/ConfigurationUpdateSubscriber.php \Drupal\update_helper_checklist\Events\ConfigurationUpdateSubscriber::onConfigurationUpdate()
Handles on configuration update event.
Parameters
\Drupal\update_helper\Events\ConfigurationUpdateEvent $event: Configuration update event.
Throws
\Drupal\Core\Entity\EntityStorageException
File
- modules/
update_helper_checklist/ src/ Events/ ConfigurationUpdateSubscriber.php, line 53
Class
- ConfigurationUpdateSubscriber
- Configuration update subscriber.
Namespace
Drupal\update_helper_checklist\EventsCode
public function onConfigurationUpdate(ConfigurationUpdateEvent $event) {
if ($event
->isSuccessful()) {
$this->updateChecklist
->markUpdatesSuccessful([
$event
->getModule() => [
$event
->getUpdateName(),
],
]);
}
else {
$this->updateChecklist
->markUpdatesFailed([
$event
->getModule() => [
$event
->getUpdateName(),
],
]);
}
}