public Pager::getInfo()
Returns the element properties for this element.
Return value
array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.
Overrides ElementInterface::getInfo
File
- core/lib/Drupal/Core/Render/Element/Pager.php, line 38
Class
- Pager
- Provides a render element for a pager.
Namespace
Drupal\Core\Render\Element
Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | public function getInfo() { return [ '#pre_render' => [ get_class( $this ) . '::preRenderPager' , ], '#theme' => 'pager' , // The pager ID, to distinguish between multiple pagers on the same page. '#element' => 0, // An associative array of query string parameters to append to the pager // links. '#parameters' => [], // The number of pages in the list. '#quantity' => 9, // An array of labels for the controls in the pager. '#tags' => [], // The name of the route to be used to build pager links. By default no // path is provided, which will make links relative to the current URL. // This makes the page more effectively cacheable. '#route_name' => '<none>' , ]; } |
Please login to continue.