You are here

protected function MultiversionManager::filterNormalizedEntity in Multiversion 8

Same name and namespace in other branches
  1. 8.2 src/MultiversionManager.php \Drupal\multiversion\MultiversionManager::filterNormalizedEntity()

Parameters

array $normalized_entity:

1 call to MultiversionManager::filterNormalizedEntity()
MultiversionManager::newRevisionId in src/MultiversionManager.php

File

src/MultiversionManager.php, line 485

Class

MultiversionManager

Namespace

Drupal\multiversion

Code

protected function filterNormalizedEntity(&$normalized_entity) {
  foreach ($normalized_entity as $key => &$value) {
    if ($key[0] == '_') {
      unset($normalized_entity[$key]);
    }
    elseif (is_array($value)) {
      $this
        ->filterNormalizedEntity($value);
    }
  }
}