interface ImportInterface in Hook Update Deploy Tools 8
Same name and namespace in other branches
- 7 src/ImportInterface.php \HookUpdateDeployTools\ImportInterface
iImport is the interface for all Hook Update Deploy Tools that import items.
Primarilly all methods in iExport are run through hook_update_N so any Exceptions being thrown should be \DrupalUpdateException.
Hierarchy
- interface \HookUpdateDeployTools\ImportInterface
Expanded class hierarchy of ImportInterface
All classes that implement ImportInterface
File
- src/
ImportInterface.php, line 11
Namespace
HookUpdateDeployToolsView source
interface ImportInterface {
/**
* The import method performs the unique steps necessary to impor the item.
*
* @param string|array $import_items
* The unique identifier(s) of the thing to import,
* usually the machine name or array of machine names.
*/
public static function import($import_items);
/**
* Verifies that that import can be used based on available module.
*
* @return bool
* TRUE If the import can be run.
*
* @throws \DrupalUpdateException if it can not be run.
*/
public static function canImport();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ImportInterface:: |
public static | function | Verifies that that import can be used based on available module. | 4 |
ImportInterface:: |
public static | function | The import method performs the unique steps necessary to impor the item. | 4 |