You are here

public function ConfigActionsService::loadSource in Config Actions 8

Load data from a given source plugin.

Parameters

mixed $source specifier:

string $type: source plugin id

string $base: optional base path

Overrides ConfigActionsServiceInterface::loadSource

File

src/ConfigActionsService.php, line 198

Class

ConfigActionsService
Base class for config_actions plugins.

Namespace

Drupal\config_actions

Code

public function loadSource($source, $type = '', $base = '') {
  $plugin = $this
    ->getSourcePlugin($source, $type, $base);
  $data = !empty($plugin) ? $plugin
    ->load() : [];
  $this->merge = !empty($plugin) ? $plugin
    ->getMerge() : FALSE;
  return $data;
}