You are here

ImporterInterface.php in Default Content for D8 2.0.x

Same filename and directory in other branches
  1. 8 src/ImporterInterface.php

File

src/ImporterInterface.php
View source
<?php

namespace Drupal\default_content;


/**
 * An interface defining a default content importer.
 */
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);

}

Interfaces

Namesort descending Description
ImporterInterface An interface defining a default content importer.