You are here

interface ImporterInterface in Default Content for D8 8

Same name and namespace in other branches
  1. 2.0.x src/ImporterInterface.php \Drupal\default_content\ImporterInterface

An interface defining a default content importer.

Hierarchy

Expanded class hierarchy of ImporterInterface

All classes that implement ImporterInterface

1 file declares its use of ImporterInterface
DefaultContentConfigSubscriber.php in src/Config/DefaultContentConfigSubscriber.php

File

src/ImporterInterface.php, line 8

Namespace

Drupal\default_content
View source
interface ImporterInterface {

  /**
   * Imports default content from a given module.
   *
   * @param string $module
   *   The module to create the default content from.
   *
   * @return \Drupal\Core\Entity\EntityInterface[]
   *   An array of created entities keyed by their UUIDs.
   */
  public function importContent($module);

}

Members

Namesort descending Modifiers Type Description Overrides
ImporterInterface::importContent public function Imports default content from a given module. 1