You are here

protected function ContentLoader::getEntityLoadHelper in YAML Content 8

Get the EntityLoadHelper service.

Return value

\Drupal\yaml_content\Service\EntityLoadHelper The EntityLoadHelper service.

File

src/ContentLoader/ContentLoader.php, line 155

Class

ContentLoader
ContentLoader class for parsing and importing YAML content.

Namespace

Drupal\yaml_content\ContentLoader

Code

protected function getEntityLoadHelper() {

  // Lazy load the entity load helper service.
  if (!isset($this->entityLoadHelper)) {
    $this->entityLoadHelper = $this->container
      ->get('yaml_content.entity_load_helper');
  }
  return $this->entityLoadHelper;
}