Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By joelpittet on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.0.x
Issue links:
Description:
Summary
- theme_link() was removed in #1985470: Remove theme_link() to stop dedicating theme functions to tiny, single tag chunks of markup because it's overkill and would only get worse if we were to create a Twig template.
- This extends the #type => link with a default title
t('More')
and class attribute.more-link
.
Before:
array(
'#theme' => 'more_link',
'#url' => 'user',
'#title' => 'Themed output generated in a KernelEvents::REQUEST listener',
);
After:
array(
'#type' => 'more_link',
'#href' => 'user',
'#attributes' => array('title' => 'Themed output generated in a KernelEvents::REQUEST listener'),
);
Impacts:
Module developers
Themers