You are here

public function PathItemNormalizer::normalize in Tome 8

Overrides ComplexDataNormalizer::normalize

1 call to PathItemNormalizer::normalize()
PathautoItemNormalizer::normalize in modules/tome_sync/src/Normalizer/PathautoItemNormalizer.php
Normalizes an object into a set of arrays/scalars.
1 method overrides PathItemNormalizer::normalize()
PathautoItemNormalizer::normalize in modules/tome_sync/src/Normalizer/PathautoItemNormalizer.php
Normalizes an object into a set of arrays/scalars.

File

modules/tome_sync/src/Normalizer/PathItemNormalizer.php, line 22

Class

PathItemNormalizer
Normalizer for Path fields.

Namespace

Drupal\tome_sync\Normalizer

Code

public function normalize($object, $format = NULL, array $context = []) {
  $values = parent::normalize($object, $format, $context);
  if (isset($values['pid'])) {
    unset($values['pid']);
  }
  return $values;
}