You are here

public function ConfigActionsSourceBase::load in Config Actions 8

Load data from the source.

Return value

array Loaded config data.

Overrides ConfigActionsSourceInterface::load

File

src/ConfigActionsSourceBase.php, line 120

Class

ConfigActionsSourceBase
Base class for config_actions plugins.

Namespace

Drupal\config_actions

Code

public function load() {
  if ($this
    ->isChanged()) {

    // If data has been changed, return it instead of loading fresh
    return $this->sourceData;
  }
  $data = $this
    ->doLoad();
  return $this
    ->setData($data, FALSE);
}