protected function define_execution() {
        $context = \context::instance_by_id($this->task->get_contextid());
        \core_search\manager::request_index($context);
    }
protected function define_execution() {
        $context = \context::instance_by_id($this->task->get_contextid());
        \core_search\manager::request_index($context);
    }
protected function define_execution ( ) { $ context = \ context :: instance_by_id ( $ this -> task -> get_contextid ( ) ) ; \ core_search \ manager :: request_index ( $ context ) ; }
When this step is executed, we add the activity context to the queue for reindexing.
When this step is executed we add the activity context to the queue for reindexing .