You are here

interface ScannerPluginInterface in Search and Replace Scanner 8

Plugin for ScannerPluginInterface.

Hierarchy

Expanded class hierarchy of ScannerPluginInterface

All classes that implement ScannerPluginInterface

File

src/Plugin/ScannerPluginInterface.php, line 11

Namespace

Drupal\scanner\Plugin
View 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

Namesort descending Modifiers Type Description Overrides
ContainerFactoryPluginInterface::create public static function Creates an instance of the plugin. 112
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
ScannerPluginInterface::replace public function Performs the replace operation and returns the results. 1
ScannerPluginInterface::search public function Performs the search operation and returns the results.. 1
ScannerPluginInterface::undo public function Performs the undo operation. 1