Deprecate teaser variable for node.html.twig.
1 open thread
Closes #3458183
Merge request reports
Activity
added 1 commit
- c7501c5f - Move the deprecation to preprocess out of hook_theme.
added 1 commit
- 95fc50fb - Move the deprecation to preprocess out of hook_theme.
added 1 commit
- fa974732 - The variable has to be defined when it's deprecated, update Olivero.
97 97 function olivero_preprocess_node(&$variables) { 98 98 // Remove the "Add new comment" link on teasers or when the comment form is 99 99 // displayed on the page. 100 if ($variables['teaser'] || !empty($variables['content']['comments']['comment_form'])) { 100 if ($variables['view_mode'] === 'teaser' || !empty($variables['content']['comments']['comment_form'])) { - Comment on lines -100 to +100
Please register or sign in to reply