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\NormalizerCode
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;
}