public function ConfigActionsSourceBase::setData in Config Actions 8
Set the data cached in this plugin instance. Causes the plugin to be marked as Changed.
Parameters
array $data:
bool $changed: whether to marked the data as changed.
Return value
array Returns the $data
Overrides ConfigActionsSourceInterface::setData
3 calls to ConfigActionsSourceBase::setData()
- ConfigActionsSourceBase::load in src/
ConfigActionsSourceBase.php - Load data from the source.
- ConfigActionsSourceBase::save in src/
ConfigActionsSourceBase.php - Save data to the source.
- ConfigActionsSourceBase::__construct in src/
ConfigActionsSourceBase.php - Constructs a new ConfigActionsSource plugin object.
File
- src/
ConfigActionsSourceBase.php, line 158
Class
- ConfigActionsSourceBase
- Base class for config_actions plugins.
Namespace
Drupal\config_actionsCode
public function setData($data = [], $changed = TRUE) {
$this->sourceData = $data;
$this->changed = $changed;
return $data;
}