class ConfigUpdateResult in Commerce Core 8.2
Result object for configuration updates.
Hierarchy
- class \Drupal\commerce\Config\ConfigUpdateResult
Expanded class hierarchy of ConfigUpdateResult
File
- src/
Config/ ConfigUpdateResult.php, line 8
Namespace
Drupal\commerce\ConfigView source
class ConfigUpdateResult {
/**
* The success messages keyed by config name.
*
* @var string[]
*/
protected $succeeded = [];
/**
* The failure messages keyed by config name.
*
* @var string[]
*/
protected $failed = [];
/**
* Constructs a new ConfigUpdateResult object.
*
* @param string[] $succeeded
* The success messages keyed by config name.
* @param string[] $failed
* The failure messages keyed by config name.
*/
public function __construct(array $succeeded, array $failed) {
$this->succeeded = $succeeded;
$this->failed = $failed;
}
/**
* Gets the success messages.
*
* @return string[]
* The success messages keyed by config name.
*/
public function getSucceeded() {
return $this->succeeded;
}
/**
* Gets the failure messages.
*
* @return string[]
* The failure messages keyed by config name.
*/
public function getFailed() {
return $this->failed;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigUpdateResult:: |
protected | property | The failure messages keyed by config name. | |
ConfigUpdateResult:: |
protected | property | The success messages keyed by config name. | |
ConfigUpdateResult:: |
public | function | Gets the failure messages. | |
ConfigUpdateResult:: |
public | function | Gets the success messages. | |
ConfigUpdateResult:: |
public | function | Constructs a new ConfigUpdateResult object. |