You are here

protected function ImportExportTestBase::getSerializer in Acquia Content Hub 8.2

Get the CDF serializer.

Return value

\Drupal\acquia_contenthub\EntityCdfSerializer CDF serializer.

Throws

\Exception

File

tests/src/Kernel/ImportExportTestBase.php, line 482

Class

ImportExportTestBase
Base for testing exports and imports.

Namespace

Drupal\Tests\acquia_contenthub\Kernel

Code

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