You are here

protected function ContentModelUpdater::getNestedValue in Panopoly 8.2

Utility method to get nested value from config data.

Parameters

array $data: The data array.

string $path: The path of the desired data.

string $delimiter: The path delimiter.

Return value

mixed The value found at the specified path.

1 call to ContentModelUpdater::getNestedValue()
ContentModelUpdater::changeNestedValue in modules/panopoly/panopoly_media/src/Update/ContentModelUpdater.php
Utility method to change nested value in config data.

File

modules/panopoly/panopoly_media/src/Update/ContentModelUpdater.php, line 1107

Class

ContentModelUpdater
Applies changes to media content model from schema versions 8204 to 8205.

Namespace

Drupal\panopoly_media\Update

Code

protected function getNestedValue(array $data, $path, $delimiter = '::') {
  $path = explode($delimiter, $path);
  return NestedArray::getValue($data, $path);
}