You are here

public function PathautoItemNormalizer::normalize in Tome 8

Overrides PathItemNormalizer::normalize

File

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

Class

PathautoItemNormalizer
Normalizer for Pathauto.

Namespace

Drupal\tome_sync\Normalizer

Code

public function normalize($object, $format = NULL, array $context = []) {
  $values = parent::normalize($object, $format, $context);
  $value = $object
    ->get('pathauto')
    ->getValue();
  if ($value !== NULL) {
    $values['pathauto'] = $value;
  }
  return $values;
}