You are here

public function ConfigReverter::getFromActive in Configuration Update Manager 8

Gets the current active value of configuration.

Parameters

string $type: The type of configuration. Or pass '' to indicate that $name is the full name.

string $name: The name of the config item, without the prefix.

Return value

array The configuration value, or FALSE if it is not found.

Overrides ConfigRevertInterface::getFromActive

File

src/ConfigReverter.php, line 200

Class

ConfigReverter
Provides methods related to config reverting, deleting, and importing.

Namespace

Drupal\config_update

Code

public function getFromActive($type, $name) {
  $full_name = $this
    ->getFullName($type, $name);
  if ($full_name) {
    return $this->activeConfigStorage
      ->read($full_name);
  }
  return FALSE;
}