interface ScannerPluginInterface in Search and Replace Scanner 8
Plugin for ScannerPluginInterface.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Core\Plugin\ContainerFactoryPluginInterface
- interface \Drupal\scanner\Plugin\ScannerPluginInterface
Expanded class hierarchy of ScannerPluginInterface
All classes that implement ScannerPluginInterface
File
- src/
Plugin/ ScannerPluginInterface.php, line 11
Namespace
Drupal\scanner\PluginView source
interface ScannerPluginInterface extends PluginInspectionInterface, ContainerFactoryPluginInterface {
/**
* Performs the search operation and returns the results..
*
* @param string $field
* The fully qualified name of the field (entityType:bundle:fieldname).
* @param string $values
* The input values from the form ($form_state values).
*
* @return array
* An array containing the entity titles and an array of matches in the
* entity.
*/
public function search($field, array $values);
/**
* Performs the replace operation and returns the results.
*
* @param string $field
* The fully qualified name of the field (entityType:bundle:fieldname).
* @param string $values
* The input values from the form ($form_state values).
* @param array $undo_data
* The array for data values.
*
* @return array
* An array containing both the old and new revision IDs for each affected
* entity.
*/
public function replace($field, array $values, array $undo_data);
/**
* Performs the undo operation.
*
* @param array $data
* An array containing the old and new revision id for the enttiy.
*/
public function undo(array $data);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContainerFactoryPluginInterface:: |
public static | function | Creates an instance of the plugin. | 112 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |
ScannerPluginInterface:: |
public | function | Performs the replace operation and returns the results. | 1 |
ScannerPluginInterface:: |
public | function | Performs the search operation and returns the results.. | 1 |
ScannerPluginInterface:: |
public | function | Performs the undo operation. | 1 |