public function TestFieldsProcessorPlugin::setMethodOverride in Search API 8
Overrides a method in this processor.
Parameters
string $method: The name of the method to override.
callable|null $override: The new code of the method, or NULL to use the default.
File
- tests/
src/ Unit/ Processor/ TestFieldsProcessorPlugin.php, line 62
Class
- TestFieldsProcessorPlugin
- Mimics a processor working on individual fields of items.
Namespace
Drupal\Tests\search_api\Unit\ProcessorCode
public function setMethodOverride($method, callable $override = NULL) {
$this->methodOverrides[$method] = $override;
}