Created
May 25, 2013 16:36
-
-
Save joelpittet/5649690 to your computer and use it in GitHub Desktop.
List of all the template files uses of attributes, title_attributes and content_attributes in d8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Drupal 8 Stats as of May 24th, 2013 | |
`title_attributes` used in 12 templates or theme functions. | |
`content_attributes` used in 9 templates or theme functions and assumed existance in rdf. | |
`attributes` used in 35 templates or theme functions. | |
## Title Attributes | |
``` | |
core/modules/block/templates/block.html.twig: | |
48: <h2{{ title_attributes }}>{{ label }}</h2> | |
core/modules/comment/templates/comment.html.twig: | |
74: <h3{{ title_attributes }}>{{ title }}</h3> | |
core/modules/field/field.module: | |
1144: $output .= '<div class="field-label"' . $variables['title_attributes'] . '>' . $variables['label'] . '</div>'; | |
core/modules/field/templates/field.html.twig: | |
41: <div class="field-label"{{ title_attributes }}>{{ label }}: </div> | |
core/modules/node/templates/node.html.twig: | |
89: <h2{{ title_attributes }}> | |
core/modules/overlay/overlay.module: | |
527: $variables['title_attributes']['id'] = 'overlay-title'; | |
core/modules/overlay/templates/overlay.html.twig: | |
26: <h1{{ title_attributes }}>{{ title }}</h1> | |
core/modules/rdf/rdf.module: | |
509: $variables['title_attributes']['property'] = empty($variables['node']->rdf_mapping['title']['predicates']) ? NULL : $variables['node']->rdf_mapping['title']['predicates']; | |
510: $variables['title_attributes']['datatype'] = ''; | |
736: $variables['title_attributes']['property'] = $comment->rdf_mapping['title']['predicates']; | |
737: $variables['title_attributes']['datatype'] = ''; | |
core/modules/search/search.pages.inc: | |
131: $variables['title_attributes']['lang'] = $result['language']; | |
core/modules/search/templates/search-result.html.twig: | |
64: <h3 class="title"{{ title_attributes }}> | |
core/themes/bartik/templates/comment.html.twig: | |
105: <h3{{ title_attributes }}>{{ title }}</h3> | |
core/themes/bartik/templates/node.html.twig: | |
86: <h2{{ title_attributes }}> | |
``` | |
## Content Attributes | |
``` | |
core/modules/block/templates/block.html.twig: | |
52: <div{{ content_attributes }}> | |
core/modules/comment/templates/comment.html.twig: | |
94: <div{{ content_attributes }}> | |
core/modules/field/field.module: | |
1148: $output .= '<div class="field-items"' . $variables['content_attributes'] . '>'; | |
core/modules/field/templates/field.html.twig: | |
43: <div class="field-items"{{ content_attributes }}> | |
core/modules/node/templates/node.html.twig: | |
102: <div{{ content_attributes }}> | |
core/modules/overlay/templates/overlay.html.twig: | |
35: <div{{ content_attributes }}> | |
core/modules/rdf/rdf.module: | |
281: * These include $attributes, $title_attributes, $content_attributes and the | |
447: * $title_attributes, and $content_attributes, and field templates have support | |
827: * content (via the $content_attributes variable), additional template | |
core/modules/search/templates/search-result.html.twig: | |
70: <p class="search-snippet"{{ content_attributes }}>{{ snippet }}</p> | |
core/themes/bartik/templates/comment.html.twig: | |
111: <div{{ content_attributes }}> | |
core/themes/bartik/templates/node.html.twig: | |
100: <div class="content clearfix"{{ content_attributes }}> | |
``` | |
## Attributes | |
``` | |
core/modules/aggregator/templates/aggregator-feed-source.html.twig: | |
23: <div{{ attributes}}> | |
core/modules/aggregator/templates/aggregator-item.html.twig: | |
21: <div{{ attributes }}> | |
core/modules/block/templates/block.html.twig: | |
45: <div{{ attributes }}> | |
core/modules/comment/templates/comment-wrapper.html.twig: | |
39: <section{{ attributes }}> | |
core/modules/comment/templates/comment.html.twig: | |
67: <article{{ attributes }}> | |
core/modules/field/templates/field.html.twig: | |
39: <div{{ attributes }}> | |
core/modules/forum/templates/forum-icon.html.twig: | |
21: <div{{ attributes }}> | |
core/modules/layout/layouts/static/one-col/one-col.html.twig: | |
17: <div class="layout-display layout-one-col {{ attributes.class }}"{{ attributes }}> | |
core/modules/layout/layouts/static/twocol/two-col.html.twig: | |
19: <div class="layout-display layout-two-col clearfix {{ attributes.class }}"{{ attributes }}> | |
core/modules/node/templates/node.html.twig: | |
85: <article id="node-{{ node.nid }}" class="{{ attributes.class }} clearfix"{{ attributes }}> | |
core/modules/overlay/templates/overlay.html.twig: | |
23: <div{{ attributes }}> | |
core/modules/search/templates/search-result.html.twig: | |
62: <li {{ attributes }}> | |
core/modules/system/templates/datetime.html.twig: | |
28: <time class="{{ attributes.class }}" {{ attributes }}>{{ html ? text|raw : text|escape }}</time> | |
core/modules/system/templates/html.html.twig: | |
39: <body{{ attributes }}> | |
core/modules/system/templates/region.html.twig: | |
25: <div{{ attributes }}> | |
core/modules/taxonomy/templates/taxonomy-term.html.twig: | |
33: <div id="taxonomy-term-{{ term.id }}"{{ attributes }}> | |
core/modules/user/templates/user.html.twig: | |
27: <article{{ attributes }}> | |
core/modules/views/templates/views-view-grid.html.twig: | |
24: <table{{ attributes }}> | |
core/modules/views/templates/views-view-table.html.twig: | |
28: <table{{ attributes }}> | |
core/modules/views_ui/templates/views-ui-display-tab-bucket.html.twig: | |
18: <div{{ attributes }}> | |
core/modules/views_ui/templates/views-ui-display-tab-setting.html.twig: | |
19: <div{{ attributes }}> | |
core/themes/bartik/templates/comment.html.twig: | |
67: <article class="{{ attributes.class }} clearfix"{{ attributes }} role="article"> | |
core/themes/bartik/templates/maintenance-page.html.twig: | |
23: <body class="{{ attributes.class }}"{{ attributes }}> | |
core/themes/bartik/templates/node.html.twig: | |
81: <article id="node-{{ node.nid }}" class="{{ attributes.class}} clearfix"{{ attributes }} role="article"> | |
core/themes/seven/templates/maintenance-page.html.twig: | |
23: <body{{ attributes }}> | |
core/modules/field/field.module: | |
1156: $output = '<div' . $variables['attributes'] . '>' . $output . '</div>'; | |
core/themes/bartik/bartik.theme: | |
165: $output = '<div ' . $variables['attributes'] . '>' . $output . '</div>'; | |
core/includes/theme.inc: | |
1688: $output = '<time' . new Attribute($variables['attributes']) . '>'; | |
core/modules/field/field.module: | |
1066: $variables['attributes'] = isset($variables['attributes']) ? new Attribute($variables['attributes']) : clone $default_attributes; | |
core/modules/rdf/rdf.module: | |
874: $attributes = new Attribute($variables['attributes']); | |
core/modules/user/user.module: | |
822: $output = '<span' . new Attribute($variables['attributes']) . '>' . $variables['name'] . $variables['extra'] . '</span>'; | |
core/includes/common.inc: | |
1989: return '<a href="' . $url . '"' . $attributes . '>' . $text . '</a>'; | |
core/includes/form.inc: | |
4141: return '<input' . $attributes . ' />' . drupal_render_children($element); | |
core/includes/theme.inc: | |
2510: return '<' . $element['#tag'] . $attributes . " />\n"; | |
2513: $output = '<' . $element['#tag'] . $attributes . '>'; | |
core/modules/ckeditor/ckeditor.admin.inc: | |
107: $output .= '<li' . $attributes . '>' . $value . '</li>'; | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment