Commit 6195b192 authored by alexpott's avatar alexpott

Issue #2422679 by mortendk, davidhernandez, akalata: copy text template to classy

parent e0f69cc3
...@@ -189,7 +189,7 @@ public function testEntityFormatter() { ...@@ -189,7 +189,7 @@ public function testEntityFormatter() {
</div> </div>
</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-label">Body</div>
<div class="field-items"> <div class="field-items">
<div class="field-item"><p>Hello, world!</p></div> <div class="field-item"><p>Hello, world!</p></div>
......
...@@ -38,29 +38,6 @@ function text_help($route_name, RouteMatchInterface $route_match) { ...@@ -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. * Generates a trimmed, formatted version of a text field value.
* *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment