function hook_scanner_info_alter in Search and Replace Scanner 8
Alter scanner definitions groups.
Parameters
array $scanners: Scanner definitions, keyed by plugin ID.
1 invocation of hook_scanner_info_alter()
- ScannerPluginManager::__construct in src/
Plugin/ ScannerPluginManager.php - Constructs a ScannerPluginManager object.
File
- ./
scanner.api.php, line 19 - Hooks provided by the scanner module.
Code
function hook_scanner_info_alter(array &$scanners) {
// Change the default node scanner handler.
$scanners['scanner_node']['class'] = 'Drupal\\hook\\Plugin\\Scanner\\CustomNodeScanner';
}