interface ImportProcessorInterface in YAML Content 8.2
A common interface for all Import Processor implementations.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Component\Plugin\ContextAwarePluginInterface
- interface \Drupal\yaml_content\ContentProcessorInterface
- interface \Drupal\yaml_content\ImportProcessorInterface
- interface \Drupal\yaml_content\ContentProcessorInterface
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_contentView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContextAwarePluginInterface:: |
public | function | Gets a defined context. | 1 |
ContextAwarePluginInterface:: |
public | function | Gets a specific context definition of the plugin. | 2 |
ContextAwarePluginInterface:: |
public | function | Gets the context definitions of the plugin. | 2 |
ContextAwarePluginInterface:: |
public | function | Gets a mapping of the expected assignment names to their context names. | 1 |
ContextAwarePluginInterface:: |
public | function | Gets the defined contexts. | 1 |
ContextAwarePluginInterface:: |
public | function | Gets the value for a defined context. | 1 |
ContextAwarePluginInterface:: |
public | function | Gets the values for all defined contexts. | 1 |
ContextAwarePluginInterface:: |
public | function | Set a context on this plugin. | 1 |
ContextAwarePluginInterface:: |
public | function | Sets a mapping of the expected assignment names to their context names. | 1 |
ContextAwarePluginInterface:: |
public | function | Sets the value for a defined context. | 1 |
ContextAwarePluginInterface:: |
public | function | Validates the set values for the defined contexts. | 1 |
ImportProcessorInterface:: |
public | function | Post-process imported content after it has been instantiated. | 1 |
ImportProcessorInterface:: |
public | function | Pre-process import data and manipulate it prior to content creation. | 1 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |