You are here

interface PagererFactoryInterface in Pagerer 8

Provides an interface for the Pagerer factory.

Hierarchy

Expanded class hierarchy of PagererFactoryInterface

All classes that implement PagererFactoryInterface

File

src/PagererFactoryInterface.php, line 8

Namespace

Drupal\pagerer
View source
interface PagererFactoryInterface {

  /**
   * Initialises the pagers.
   */
  public function initPagers();

  /**
   * Returns the pager object for the specified pager element.
   *
   * @param int $element
   *   The pager element.
   *
   * @return \Drupal\pagerer\Pagerer
   *   The pager object.
   */
  public function get($element);

  /**
   * Returns the array of pager objects.
   *
   * @return \Drupal\pagerer\Pagerer[]
   *   The array of pager objects.
   */
  public function all();

}

Members

Namesort descending Modifiers Type Description Overrides
PagererFactoryInterface::all public function Returns the array of pager objects. 1
PagererFactoryInterface::get public function Returns the pager object for the specified pager element. 1
PagererFactoryInterface::initPagers public function Initialises the pagers. 1