You are here

protected function EntityPager::defineOptions in Entity Pager 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/views/style/EntityPager.php \Drupal\entity_pager\Plugin\views\style\EntityPager::defineOptions()

Information about options for all kinds of purposes will be held here.


'option_name' => array(
 - 'default' => default value,
 - 'contains' => (optional) array of items this contains, with its own
     defaults, etc. If contains is set, the default will be ignored and
     assumed to be array().
 ),

Return value

array Returns the options of this handler/plugin.

Overrides StylePluginBase::defineOptions

File

src/Plugin/views/style/EntityPager.php, line 84

Class

EntityPager
Style plugin to render a view for an Entity Pager.

Namespace

Drupal\entity_pager\Plugin\views\style

Code

protected function defineOptions() {
  $defaults = $this
    ->getDefaultOptions();
  return parent::defineOptions() + [
    'relationship' => [
      'default' => $defaults['relationship'],
    ],
    'link_next' => [
      'default' => $defaults['link_next'],
    ],
    'link_prev' => [
      'default' => $defaults['link_prev'],
    ],
    'link_all_url' => [
      'default' => $defaults['link_all_url'],
    ],
    'link_all_text' => [
      'default' => $defaults['link_all_text'],
    ],
    'display_all' => [
      'default' => $defaults['display_all'],
    ],
    'display_count' => [
      'default' => $defaults['display_count'],
    ],
    'show_disabled_links' => [
      'default' => $defaults['show_disabled_links'],
    ],
    'circular_paging' => [
      'default' => $defaults['circular_paging'],
    ],
    'log_performance' => [
      'default' => $defaults['log_performance'],
    ],
  ];
}