By wongjn on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
2.0.x
Introduced in version:
2.0.0-alpha1
Description:
Theming for the pager has been completely reworked:
\Drupal\entity_pager\EntityPagerLinkand\Drupal\entity_pager\EntityPagerLinkInterfaceremoved and logic inlined into\Drupal\entity_pager\EntityPager. This also means there have been adjustments to\Drupal\entity_pager\EntityPagerFactory.\Drupal\entity_pager\EntityPager::getLinks()no longer returns thecountmember. The variables that we used to build this item is now added to the template throughtemplate_preprocess_entity_pager()and the markup is constructed withinentity-pager.html.twig– this allows easier modification, especially for theme developers.\Drupal\entity_pager\EntityPager::getCountWord()no longer exists, along with the CSS class name it was used to build. If this is still required, theme developers can reimplement the logic in their own pre-process function or twig template.\Drupal\entity_pager\EntityPager::getLinks()no longer returns render arrays but arrays with memberstitle,url, andattributes. This allows modifications to markup within the twig template instead of necessarily having to use a pre-process function.
Impacts:
Module developers
Themers