You are here

public function AlphaPagination::getOption in Views Alpha Pagination 8.2

Retrieves an option from the view handler.

Parameters

string $name: The option name to retrieve.

mixed $default: The default value to return if not set.

Return value

string The option value or $default if not set.

8 calls to AlphaPagination::getOption()
AlphaPagination::ensureQuery in src/AlphaPagination.php
Extract the SQL query from the query information.
AlphaPagination::getCharacters in src/AlphaPagination.php
Retrieves the characters used to populate the pagination item list.
AlphaPagination::getCid in src/AlphaPagination.php
Retrieves a cache identifier for the view, display and query, if set.
AlphaPagination::getEntityIds in src/AlphaPagination.php
Construct the actual SQL query for the view being generated.
AlphaPagination::getEntityPrefixes in src/AlphaPagination.php
Retrieve the distinct first character prefix from the field tables.

... See full list

File

src/AlphaPagination.php, line 716

Class

AlphaPagination
A base views handler for alpha pagination.

Namespace

Drupal\alpha_pagination

Code

public function getOption($name, $default = '') {
  return (string) (isset($this->handler->options[$name]) ? $this->handler->options[$name] : $default);
}