class ConfigurationUpdateEvent in Update helper 8
Same name and namespace in other branches
- 2.x src/Events/ConfigurationUpdateEvent.php \Drupal\update_helper\Events\ConfigurationUpdateEvent
Event for configuration update execution.
@package Drupal\update_helper\Events
Hierarchy
- class \Drupal\update_helper\Events\ConfigurationUpdateEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of ConfigurationUpdateEvent
2 files declare their use of ConfigurationUpdateEvent
- ConfigurationUpdateSubscriber.php in modules/
update_helper_checklist/ src/ Events/ ConfigurationUpdateSubscriber.php - Updater.php in src/
Updater.php
File
- src/
Events/ ConfigurationUpdateEvent.php, line 12
Namespace
Drupal\update_helper\EventsView source
class ConfigurationUpdateEvent extends Event {
/**
* Module name.
*
* @var string
*/
protected $module;
/**
* Update name.
*
* @var string
*/
protected $updateName;
/**
* Count of warnings occurred during update execution.
*
* @var int
*/
protected $warningCount;
/**
* Configuration update event.
*
* @param string $module
* Module name.
* @param string $updateName
* Update name.
* @param int $warningCount
* Count of warnings occurred during update execution.
*/
public function __construct($module, $updateName, $warningCount) {
$this->module = $module;
$this->updateName = $updateName;
$this->warningCount = $warningCount;
}
/**
* Get module name.
*
* @return string
* Returns module name.
*/
public function getModule() {
return $this->module;
}
/**
* Get update name.
*
* @return string
* Returns update name.
*/
public function getUpdateName() {
return $this->updateName;
}
/**
* Get status for configuration update.
*
* @return bool
* Returns status for configuration update.
*/
public function isSuccessful() {
return $this->warningCount === 0;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurationUpdateEvent:: |
protected | property | Module name. | |
ConfigurationUpdateEvent:: |
protected | property | Update name. | |
ConfigurationUpdateEvent:: |
protected | property | Count of warnings occurred during update execution. | |
ConfigurationUpdateEvent:: |
public | function | Get module name. | |
ConfigurationUpdateEvent:: |
public | function | Get update name. | |
ConfigurationUpdateEvent:: |
public | function | Get status for configuration update. | |
ConfigurationUpdateEvent:: |
public | function | Configuration update event. |