You are here

interface MigrateTemplateStorageInterface in Migrate Manifest 8.2

Same name and namespace in other branches
  1. 8 src/MigrateTemplateStorageInterface.php \Drupal\migrate_manifest\MigrateTemplateStorageInterface
  2. 3.x src/MigrateTemplateStorageInterface.php \Drupal\migrate_manifest\MigrateTemplateStorageInterface

The MigrateTemplateStorageInterface interface.

Direct copy of the template storage interface removed from core.

Hierarchy

Expanded class hierarchy of MigrateTemplateStorageInterface

All classes that implement MigrateTemplateStorageInterface

See also

https://www.drupal.org/node/2676258

File

src/MigrateTemplateStorageInterface.php, line 11

Namespace

Drupal\migrate_manifest
View source
interface MigrateTemplateStorageInterface {

  /**
   * Find all migration templates with the specified tag.
   *
   * @param string $tag
   *   The tag to match.
   *
   * @return array
   *   Any templates (parsed YAML config) that matched, keyed by the ID.
   */
  public function findTemplatesByTag($tag);

  /**
   * Retrieve a template given a specific name.
   *
   * @param string $name
   *   A migration template name.
   *
   * @return null|array
   *   A parsed migration template, or NULL if it doesn't exist.
   */
  public function getTemplateByName($name);

  /**
   * Retrieves all migration templates belonging to enabled extensions.
   *
   * @return array
   *   Array of parsed templates, keyed by the fully-qualified id.
   */
  public function getAllTemplates();

}

Members

Namesort descending Modifiers Type Description Overrides
MigrateTemplateStorageInterface::findTemplatesByTag public function Find all migration templates with the specified tag. 1
MigrateTemplateStorageInterface::getAllTemplates public function Retrieves all migration templates belonging to enabled extensions. 1
MigrateTemplateStorageInterface::getTemplateByName public function Retrieve a template given a specific name. 1