public function CoreExtensionFilter::filterRead

8.0.x CoreExtensionFilter.php public CoreExtensionFilter::filterRead($name, $data)
master CoreExtensionFilter.php public CoreExtensionFilter::filterRead($name, $data)

Filters configuration data after it is read from storage.

Parameters

string $name: The name of a configuration object to load.

array $data: The configuration data to filter.

Return value

array $data The filtered data.

Overrides StorageFilter::filterRead

File

lib/Drush/Config/CoreExtensionFilter.php, line 53
Definition of Drush\Config\StorageFilter.

Namespace

Drush\Config

Class

CoreExtensionFilter
This filter adjusts the data going to and coming from the core.extension configuration object.

Code

public function filterRead($name, $data) {
  if ($name != 'core.extension') {
    return $data;
  }
  $active_storage = \Drupal::service('config.storage');
  return $this->filterOutIgnored($data, $active_storage->read($name));
}