You are here

protected function ContentEntityCdfNormalizer::getSerializer in Acquia Content Hub 8

Obtains the serializer.

File

src/Normalizer/ContentEntityCdfNormalizer.php, line 195

Class

ContentEntityCdfNormalizer
Converts the Drupal entity object to a Acquia Content Hub CDF array.

Namespace

Drupal\acquia_contenthub\Normalizer

Code

protected function getSerializer() {
  return \Drupal::service('serializer');
}