Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
316
Merge Requests
316
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
6195b192
Commit
6195b192
authored
Apr 21, 2015
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2422679
by mortendk, davidhernandez, akalata: copy text template to classy
parent
e0f69cc3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1 addition
and
24 deletions
+1
-24
core/modules/field/src/Tests/EntityReference/EntityReferenceFormatterTest.php
...rc/Tests/EntityReference/EntityReferenceFormatterTest.php
+1
-1
core/modules/text/text.module
core/modules/text/text.module
+0
-23
core/themes/classy/templates/field/field--text-long.html.twig
.../themes/classy/templates/field/field--text-long.html.twig
+0
-0
core/themes/classy/templates/field/field--text-with-summary.html.twig
...classy/templates/field/field--text-with-summary.html.twig
+0
-0
core/themes/classy/templates/field/field--text.html.twig
core/themes/classy/templates/field/field--text.html.twig
+0
-0
No files found.
core/modules/field/src/Tests/EntityReference/EntityReferenceFormatterTest.php
View file @
6195b192
...
...
@@ -189,7 +189,7 @@ public function testEntityFormatter() {
</div>
</div>
'
;
$expected_rendered_body_field_1
=
'<div class="
clearfix
field field-entity-test--body field-name-body field-type-text field-label-above">
$expected_rendered_body_field_1
=
'<div class="field field-entity-test--body field-name-body field-type-text field-label-above">
<div class="field-label">Body</div>
<div class="field-items">
<div class="field-item"><p>Hello, world!</p></div>
...
...
core/modules/text/text.module
View file @
6195b192
...
...
@@ -38,29 +38,6 @@ function text_help($route_name, RouteMatchInterface $route_match) {
}
}
/**
* Implements hook_theme().
*/
function
text_theme
()
{
return
[
// Normally theme suggestion templates are only picked up when they are in
// themes. We explicitly define theme suggestions here so that the text
// field templates in core/modules/text/templates are picked up.
'field__text'
=>
[
'render element'
=>
'elements'
,
'base hook'
=>
'field'
,
],
'field__text_long'
=>
[
'render element'
=>
'elements'
,
'base hook'
=>
'field'
,
],
'field__text_with_summary'
=>
[
'render element'
=>
'elements'
,
'base hook'
=>
'field'
,
],
];
}
/**
* Generates a trimmed, formatted version of a text field value.
*
...
...
core/
modules/text/templates
/field--text-long.html.twig
→
core/
themes/classy/templates/field
/field--text-long.html.twig
View file @
6195b192
File moved
core/
modules/text/templates
/field--text-with-summary.html.twig
→
core/
themes/classy/templates/field
/field--text-with-summary.html.twig
View file @
6195b192
File moved
core/
modules/text/templates
/field--text.html.twig
→
core/
themes/classy/templates/field
/field--text.html.twig
View file @
6195b192
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment