public function Index::hasValidTracker in Search API 8
Determines whether the tracker is valid.
Return value
bool TRUE if the tracker is valid, otherwise FALSE.
Overrides IndexInterface::hasValidTracker
7 calls to Index::hasValidTracker()
- Index::getAllPlugins in src/
Entity/ Index.php - Retrieves all the plugins contained in this index.
- Index::indexItems in src/
Entity/ Index.php - Indexes a set amount of items.
- Index::indexSpecificItems in src/
Entity/ Index.php - Indexes some objects on this index.
- Index::postSave in src/
Entity/ Index.php - Acts on a saved entity before the insert or update hook is invoked.
- Index::reactToTrackerSwitch in src/
Entity/ Index.php - Checks whether the index switched tracker plugin and reacts accordingly.
File
- src/
Entity/ Index.php, line 427
Class
- Index
- Defines the search index configuration entity.
Namespace
Drupal\search_api\EntityCode
public function hasValidTracker() {
return (bool) \Drupal::getContainer()
->get('plugin.manager.search_api.tracker')
->getDefinition($this
->getTrackerId(), FALSE);
}