interface ImporterInterface in CSV Importer 8
Importer manager interface.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Core\Plugin\ContainerFactoryPluginInterface
- interface \Drupal\csv_importer\Plugin\ImporterInterface
Expanded class hierarchy of ImporterInterface
All classes that implement ImporterInterface
File
- src/
Plugin/ ImporterInterface.php, line 11
Namespace
Drupal\csv_importer\PluginView source
interface ImporterInterface extends PluginInspectionInterface, ContainerFactoryPluginInterface {
/**
* Prepare data for import.
*
* @return array
* Prepared data.
*/
public function data();
/**
* Add content.
*
* @param mixed $content
* CSV content.
* @param array $context
* The batch context array.
*
* @return array
* Prepared data.
*/
public function add($content, array &$context);
/**
* Batch finish handler.
*
* @param bool $success
* A boolean indicating whether the batch has completed successfully.
* @param array $results
* The value set in $context['results'] by callback_batch_operation().
* @param array $operations
* Contains the operations that remained unprocessed.
*
* @return array
* Prepared data.
*/
public function finished($success, array $results, array $operations);
/**
* Run batch operations.
*/
public function process();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContainerFactoryPluginInterface:: |
public static | function | Creates an instance of the plugin. | 112 |
ImporterInterface:: |
public | function | Add content. | 1 |
ImporterInterface:: |
public | function | Prepare data for import. | 1 |
ImporterInterface:: |
public | function | Batch finish handler. | 1 |
ImporterInterface:: |
public | function | Run batch operations. | 1 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |