public function UnsavedIndexConfiguration::setTracker in Search API 8
Sets the tracker the index uses.
Parameters
\Drupal\search_api\Tracker\TrackerInterface $tracker: The new tracker for the index.
Return value
$this
Overrides IndexInterface::setTracker
File
- src/
UnsavedIndexConfiguration.php, line 321
Class
- UnsavedIndexConfiguration
- Represents a configuration of an index that was not yet permanently saved.
Namespace
Drupal\search_apiCode
public function setTracker(TrackerInterface $tracker) {
$this->entity
->setTracker($tracker);
return $this;
}