You are here

interface ImportProcessorInterface in YAML Content 8.2

A common interface for all Import Processor implementations.

Hierarchy

Expanded class hierarchy of ImportProcessorInterface

All classes that implement ImportProcessorInterface

1 file declares its use of ImportProcessorInterface
ProcessedContentLoader.php in src/ContentLoader/ProcessedContentLoader.php

File

src/ImportProcessorInterface.php, line 8

Namespace

Drupal\yaml_content
View source
interface ImportProcessorInterface extends ContentProcessorInterface {

  /**
   * Pre-process import data and manipulate it prior to content creation.
   *
   * @param array $import_data
   *   The data array being processed for content import.
   */
  public function preprocess(array &$import_data);

  /**
   * Post-process imported content after it has been instantiated.
   *
   * @param array $import_data
   *   The data array that was processed to create the imported content item.
   * @param mixed $imported_content
   *   The instantiated content element from the original content data array.
   */
  public function postprocess(array &$import_data, &$imported_content);

}

Members

Namesort descending Modifiers Type Description Overrides
ContextAwarePluginInterface::getContext public function Gets a defined context. 1
ContextAwarePluginInterface::getContextDefinition public function Gets a specific context definition of the plugin. 2
ContextAwarePluginInterface::getContextDefinitions public function Gets the context definitions of the plugin. 2
ContextAwarePluginInterface::getContextMapping public function Gets a mapping of the expected assignment names to their context names. 1
ContextAwarePluginInterface::getContexts public function Gets the defined contexts. 1
ContextAwarePluginInterface::getContextValue public function Gets the value for a defined context. 1
ContextAwarePluginInterface::getContextValues public function Gets the values for all defined contexts. 1
ContextAwarePluginInterface::setContext public function Set a context on this plugin. 1
ContextAwarePluginInterface::setContextMapping public function Sets a mapping of the expected assignment names to their context names. 1
ContextAwarePluginInterface::setContextValue public function Sets the value for a defined context. 1
ContextAwarePluginInterface::validateContexts public function Validates the set values for the defined contexts. 1
ImportProcessorInterface::postprocess public function Post-process imported content after it has been instantiated. 1
ImportProcessorInterface::preprocess public function Pre-process import data and manipulate it prior to content creation. 1
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2