original_string: public function currentPosition()
      {
          $parent = $this->parent();
          $collection = $parent ? $parent->collection('content', false) : null;
          if ($collection instanceof Collection) {
              return $collection->currentPosition($this->path());
          }
  
          return 1;
      }
code: public function currentPosition()
      {
          $parent = $this->parent();
          $collection = $parent ? $parent->collection('content', false) : null;
          if ($collection instanceof Collection) {
              return $collection->currentPosition($this->path());
          }
  
          return 1;
      }
code_tokens: public function currentPosition ( ) { $ parent = $ this -> parent ( ) ; $ collection = $ parent ? $ parent -> collection ( 'content' , false ) : null ; if ( $ collection instanceof Collection ) { return $ collection -> currentPosition ( $ this -> path ( ) ) ; } return 1 ; }
docstring: Returns the item in the current position.
  
  @return int   the index of the current page.
docstring_tokens: Returns the item in the current position .