public function UnsavedIndexConfiguration::isValidProcessor in Search API 8
Determines whether the given processor ID is valid for this index.
The general contract of this method is that it should return TRUE if, and only if, a call to getProcessor() with the same ID would not result in an exception.
Parameters
string $processor_id: A processor plugin ID.
Return value
bool TRUE if the processor with the given ID is enabled for this index and can be loaded. FALSE otherwise.
Overrides IndexInterface::isValidProcessor
File
- src/
UnsavedIndexConfiguration.php, line 379
Class
- UnsavedIndexConfiguration
- Represents a configuration of an index that was not yet permanently saved.
Namespace
Drupal\search_apiCode
public function isValidProcessor($processor_id) {
return $this->entity
->isValidProcessor($processor_id);
}