You are here

protected function EntityCdfSerializer::getModuleHandler in Acquia Content Hub 8.2

Get the module handler statically to prevent issues with module install.

Return value

\Drupal\Core\Extension\ModuleHandlerInterface Module handler.

File

src/EntityCdfSerializer.php, line 270

Class

EntityCdfSerializer
Serialize an entity to a CDF format.

Namespace

Drupal\acquia_contenthub

Code

protected function getModuleHandler() {
  return \Drupal::moduleHandler();
}