public function ReindexScheduledEvent::__construct in Search API 8
Constructs a new class instance.
Parameters
\Drupal\search_api\IndexInterface $index: The index scheduled for reindexing.
bool $clear: Boolean indicating whether the index was also cleared.
File
- src/
Event/ ReindexScheduledEvent.php, line 35
Class
- ReindexScheduledEvent
- Wraps a reindex scheduled event.
Namespace
Drupal\search_api\EventCode
public function __construct(IndexInterface $index, $clear) {
$this->index = $index;
$this->clear = $clear;
}