annotate core/themes/classy/templates/content/page-title.html.twig @ 5:12f9dff5fda9
tip
Update to Drupal core 8.7.1
author |
Chris Cannam |
date |
Thu, 09 May 2019 15:34:47 +0100 |
parents |
c75dbcec494b |
children |
|
rev |
line source |
Chris@0
|
1 {#
|
Chris@0
|
2 /**
|
Chris@0
|
3 * @file
|
Chris@0
|
4 * Theme override for page titles.
|
Chris@0
|
5 *
|
Chris@0
|
6 * Available variables:
|
Chris@0
|
7 * - title_attributes: HTML attributes for the page title element.
|
Chris@0
|
8 * - title_prefix: Additional output populated by modules, intended to be
|
Chris@0
|
9 * displayed in front of the main title tag that appears in the template.
|
Chris@0
|
10 * - title: The page title, for use in the actual content.
|
Chris@0
|
11 * - title_suffix: Additional output populated by modules, intended to be
|
Chris@0
|
12 * displayed after the main title tag that appears in the template.
|
Chris@0
|
13 */
|
Chris@0
|
14 #}
|
Chris@0
|
15 {{ title_prefix }}
|
Chris@0
|
16 {% if title %}
|
Chris@0
|
17 <h1{{ title_attributes.addClass('page-title') }}>{{ title }}</h1>
|
Chris@0
|
18 {% endif %}
|
Chris@0
|
19 {{ title_suffix }}
|