public function Pager::getInfo in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Render/Element/Pager.php \Drupal\Core\Render\Element\Pager::getInfo()
- 9 core/lib/Drupal/Core/Render/Element/Pager.php \Drupal\Core\Render\Element\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\ElementCode
public function getInfo() {
return [
'#pre_render' => [
static::class . '::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>',
];
}