You are here

public function ConfigurableContentLoader::__construct in YAML Content 8.2

Constructs a ContentLoaderBase object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: An Entity Type Manager service implementation.

\Drupal\Component\Serialization\SerializationInterface $parser: A serialization parser to interpret content from content files.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher: An event dispatcher service to publish events throughout the process.

Overrides ContentLoaderBase::__construct

File

src/ContentLoader/ConfigurableContentLoader.php, line 29

Class

ConfigurableContentLoader
A ContentLoader implementation supporting configuration options.

Namespace

Drupal\yaml_content\ContentLoader

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, SerializationInterface $parser, EventDispatcherInterface $dispatcher) {
  parent::__construct($entityTypeManager, $parser, $dispatcher);

  // Initialize with default configuration options.
  $this->options = $this
    ->getDefaultOptions();
}