original_string: public function validatePageCollectionItem($page_id)
      {
          $page = $this->page->get($page_id);
  
          if (empty($page['status'])) {
              return $this->translation->text('@name is unavailable', array('@name' => $this->translation->text('Page')));
          }
  
          return true;
      }
code: public function validatePageCollectionItem($page_id)
      {
          $page = $this->page->get($page_id);
  
          if (empty($page['status'])) {
              return $this->translation->text('@name is unavailable', array('@name' => $this->translation->text('Page')));
          }
  
          return true;
      }
code_tokens: public function validatePageCollectionItem ( $ page_id ) { $ page = $ this -> page -> get ( $ page_id ) ; if ( empty ( $ page [ 'status' ] ) ) { return $ this -> translation -> text ( '@name is unavailable' , array ( '@name' => $ this -> translation -> text ( 'Page' ) ) ) ; } return true ; }
docstring: Validates page collection item. Hook callback
  @param integer $page_id
  @return boolean|string
docstring_tokens: Validates page collection item . Hook callback