original_string: public function meta(array $options = [])
      {
          $options += [
                  'model' => null,
                  'block' => false,
                  'prev' => true,
                  'next' => true,
                  'first' => false,
                  'last' => false
              ];
  
          $model = isset($options['model']) ? $options['model'] : null;
          $params = $this->params($model);
          $links = [];
  
          if ($options['prev'] && $this->hasPrev()) {
              $links[] = $this->Html->meta('prev', $this->generateUrl(['page' => $params['page'] - 1], null, ['fullBase' => true]));
          }
  
          if ($options['next'] && $this->hasNext()) {
              $links[] = $this->Html->meta('next', $this->generateUrl(['page' => $params['page'] + 1], null, ['fullBase' => true]));
          }
  
          if ($options['first']) {
              $links[] = $this->Html->meta('first', $this->generateUrl(['page' => 1], null, ['fullBase' => true]));
          }
  
          if ($options['last']) {
              $links[] = $this->Html->meta('last', $this->generateUrl(['page' => $params['pageCount']], null, ['fullBase' => true]));
          }
  
          $out = implode($links);
  
          if ($options['block'] === true) {
              $options['block'] = __FUNCTION__;
          }
  
          if ($options['block']) {
              $this->_View->append($options['block'], $out);
  
              return null;
          }
  
          return $out;
      }
code: public function meta(array $options = [])
      {
          $options += [
                  'model' => null,
                  'block' => false,
                  'prev' => true,
                  'next' => true,
                  'first' => false,
                  'last' => false
              ];
  
          $model = isset($options['model']) ? $options['model'] : null;
          $params = $this->params($model);
          $links = [];
  
          if ($options['prev'] && $this->hasPrev()) {
              $links[] = $this->Html->meta('prev', $this->generateUrl(['page' => $params['page'] - 1], null, ['fullBase' => true]));
          }
  
          if ($options['next'] && $this->hasNext()) {
              $links[] = $this->Html->meta('next', $this->generateUrl(['page' => $params['page'] + 1], null, ['fullBase' => true]));
          }
  
          if ($options['first']) {
              $links[] = $this->Html->meta('first', $this->generateUrl(['page' => 1], null, ['fullBase' => true]));
          }
  
          if ($options['last']) {
              $links[] = $this->Html->meta('last', $this->generateUrl(['page' => $params['pageCount']], null, ['fullBase' => true]));
          }
  
          $out = implode($links);
  
          if ($options['block'] === true) {
              $options['block'] = __FUNCTION__;
          }
  
          if ($options['block']) {
              $this->_View->append($options['block'], $out);
  
              return null;
          }
  
          return $out;
      }
code_tokens: public function meta ( array $ options = [ ] ) { $ options += [ 'model' => null , 'block' => false , 'prev' => true , 'next' => true , 'first' => false , 'last' => false ] ; $ model = isset ( $ options [ 'model' ] ) ? $ options [ 'model' ] : null ; $ params = $ this -> params ( $ model ) ; $ links = [ ] ; if ( $ options [ 'prev' ] && $ this -> hasPrev ( ) ) { $ links [ ] = $ this -> Html -> meta ( 'prev' , $ this -> generateUrl ( [ 'page' => $ params [ 'page' ] - 1 ] , null , [ 'fullBase' => true ] ) ) ; } if ( $ options [ 'next' ] && $ this -> hasNext ( ) ) { $ links [ ] = $ this -> Html -> meta ( 'next' , $ this -> generateUrl ( [ 'page' => $ params [ 'page' ] + 1 ] , null , [ 'fullBase' => true ] ) ) ; } if ( $ options [ 'first' ] ) { $ links [ ] = $ this -> Html -> meta ( 'first' , $ this -> generateUrl ( [ 'page' => 1 ] , null , [ 'fullBase' => true ] ) ) ; } if ( $ options [ 'last' ] ) { $ links [ ] = $ this -> Html -> meta ( 'last' , $ this -> generateUrl ( [ 'page' => $ params [ 'pageCount' ] ] , null , [ 'fullBase' => true ] ) ) ; } $ out = implode ( $ links ) ; if ( $ options [ 'block' ] === true ) { $ options [ 'block' ] = __FUNCTION__ ; } if ( $ options [ 'block' ] ) { $ this -> _View -> append ( $ options [ 'block' ] , $ out ) ; return null ; } return $ out ; }
docstring: Returns the meta-links for a paginated result set.
  
  ```
  echo $this->Paginator->meta();
  ```
  
  Echos the links directly, will output nothing if there is neither a previous nor next page.
  
  ```
  $this->Paginator->meta(['block' => true]);
  ```
  
  Will append the output of the meta function to the named block - if true is passed the "meta"
  block is used.
  
  ### Options:
  
  - `model` The model to use defaults to PaginatorHelper::defaultModel()
  - `block` The block name to append the output to, or false/absent to return as a string
  - `prev` (default True) True to generate meta for previous page
  - `next` (default True) True to generate meta for next page
  - `first` (default False) True to generate meta for first page
  - `last` (default False) True to generate meta for last page
  
  @param array $options Array of options
  @return string|null Meta links
docstring_tokens: Returns the meta - links for a paginated result set .