You are here

public function LoadHelper::__construct in YAML Content 8

Constructs the load helper service.

Parameters

\Drupal\yaml_content\ContentLoader\ContentLoaderInterface $content_loader: The content loader service to use for content imports.

\Psr\Log\LoggerInterface $logger: The logging channel for recording import events.

\Drupal\Core\StringTranslation\TranslationInterface $translation: String translation service for message logging.

File

src/Service/LoadHelper.php, line 41

Class

LoadHelper
A helper class to support the content loading process.

Namespace

Drupal\yaml_content\Service

Code

public function __construct(ContentLoaderInterface $content_loader, LoggerInterface $logger, TranslationInterface $translation) {
  $this->loader = $content_loader;
  $this->logger = $logger;
  $this
    ->setStringTranslation($translation);
}