You are here

public function AlphaPagination::getAreaHandlers in Views Alpha Pagination 7.2

Retrieves all available alpha pagination areas.

Parameters

array $types: The handler types to search.

Return value

\views_handler_area_alpha_pagination[] An array of alpha pagination areas.

1 call to AlphaPagination::getAreaHandlers()
AlphaPagination::validate in src/AlphaPagination.php

File

src/AlphaPagination.php, line 218

Class

AlphaPagination
A base views handler for alpha pagination.

Code

public function getAreaHandlers(array $types = [
  'header',
  'footer',
]) {
  $areas = [];
  foreach ($types as $type) {
    foreach ($this->handler->view->display_handler
      ->get_handlers($type) as $handler) {
      if ($handler instanceof \views_handler_area_alpha_pagination) {
        $areas[] = $handler;
      }
    }
  }
  return $areas;
}