public function AlphaPagination::isNumeric in Views Alpha Pagination 8.2
Determines if value is "numeric".
Parameters
string $value: The value to test.
Return value
bool TRUE or FALSE
3 calls to AlphaPagination::isNumeric()
- AlphaPagination::getCharacters in src/
AlphaPagination.php - Retrieves the characters used to populate the pagination item list.
- AlphaPagination::getLabel in src/
AlphaPagination.php - Retrieves the proper label for a character.
- AlphaPagination::getValue in src/
AlphaPagination.php - Retrieves the proper value for a character.
File
- src/
AlphaPagination.php, line 854
Class
- AlphaPagination
- A base views handler for alpha pagination.
Namespace
Drupal\alpha_paginationCode
public function isNumeric($value) {
return $this
->getOption('paginate_view_numbers') === '2' && $value === $this
->getOption('paginate_numeric_value') || in_array($value, $this
->getNumbers());
}