original_string: protected function define_execution() {
          // A block in the restore list may be skipped because a duplicate is detected.
          // In this case, there is no new blockid (or context) to get.
          if (!empty($this->task->get_blockid())) {
              $context = \context_block::instance($this->task->get_blockid());
              \core_search\manager::request_index($context);
          }
      }
code: protected function define_execution() {
          // A block in the restore list may be skipped because a duplicate is detected.
          // In this case, there is no new blockid (or context) to get.
          if (!empty($this->task->get_blockid())) {
              $context = \context_block::instance($this->task->get_blockid());
              \core_search\manager::request_index($context);
          }
      }
code_tokens: protected function define_execution ( ) { // A block in the restore list may be skipped because a duplicate is detected. // In this case, there is no new blockid (or context) to get. if ( ! empty ( $ this -> task -> get_blockid ( ) ) ) { $ context = \ context_block :: instance ( $ this -> task -> get_blockid ( ) ) ; \ core_search \ manager :: request_index ( $ context ) ; } }
docstring: When this step is executed, we add the block context to the queue for reindexing.
docstring_tokens: When this step is executed we add the block context to the queue for reindexing .