original_string: public function index($handler_id, $data)
      {
          $result = null;
          $this->hook->attach('search.index', $handler_id, $data, $result, $this);
  
          if (isset($result)) {
              return $result;
          }
  
          return $this->callHandler($handler_id, 'index', array($data, $this));
      }
code: public function index($handler_id, $data)
      {
          $result = null;
          $this->hook->attach('search.index', $handler_id, $data, $result, $this);
  
          if (isset($result)) {
              return $result;
          }
  
          return $this->callHandler($handler_id, 'index', array($data, $this));
      }
code_tokens: public function index ( $ handler_id , $ data ) { $ result = null ; $ this -> hook -> attach ( 'search.index' , $ handler_id , $ data , $ result , $ this ) ; if ( isset ( $ result ) ) { return $ result ; } return $ this -> callHandler ( $ handler_id , 'index' , array ( $ data , $ this ) ) ; }
docstring: Indexes an item
  @param string $handler_id
  @param array|string $data
  @return mixed
docstring_tokens: Indexes an item