You are here

protected function ContentModelUpdater::unsetNestedValue in Panopoly 8.2

Utility method to unset nested value in config data.

Parameters

array $data: The data array.

string $path: The path of the desired data.

string $delimiter: The path delimiter.

2 calls to ContentModelUpdater::unsetNestedValue()
ContentModelUpdater::updateFormDisplay in modules/panopoly/panopoly_media/src/Update/ContentModelUpdater.php
Update configuration for entity form displays.
ContentModelUpdater::updateViewDisplay in modules/panopoly/panopoly_media/src/Update/ContentModelUpdater.php
Update configuration for entity view displays.

File

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

Class

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

Namespace

Drupal\panopoly_media\Update

Code

protected function unsetNestedValue(array &$data, $path, $delimiter = '::') {
  $path = explode($delimiter, $path);
  NestedArray::unsetValue($data, $path);
}