You are here

protected function EntityPager::getOption in Entity Pager 8

Returns a value for an option.

Parameters

string $name: The option name.

Return value

mixed The option value, falling back to the default.

1 call to EntityPager::getOption()
EntityPager::buildOptionsForm in src/Plugin/views/style/EntityPager.php
Provide a form to edit options for this plugin.

File

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

Class

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

Namespace

Drupal\entity_pager\Plugin\views\style

Code

protected function getOption($name) {
  $defaults = $this
    ->getDefaultOptions();
  return isset($this->options[$name]) ? $this->options[$name] : $defaults[$name];
}