Skip to content
Snippets Groups Projects

#3371841 - Add templates

+ 4
0
@@ -168,6 +168,7 @@ function manage_display_base_field_info($entity_type_id) {
@@ -168,6 +168,7 @@ function manage_display_base_field_info($entity_type_id) {
* Implements hook_theme().
* Implements hook_theme().
*/
*/
function manage_display_theme() {
function manage_display_theme() {
 
$node_path = \Drupal::service('extension.path.resolver')->getPath('module', 'node');
return [
return [
'submitted' => [
'submitted' => [
'variables' => [
'variables' => [
@@ -188,14 +189,17 @@ function manage_display_theme() {
@@ -188,14 +189,17 @@ function manage_display_theme() {
// Reuse the special 'inline' node templates for other entity types.
// Reuse the special 'inline' node templates for other entity types.
'field__uid' => [
'field__uid' => [
'base hook' => 'field',
'base hook' => 'field',
 
'path' => $node_path . '/templates',
'template' => 'field--node--uid',
'template' => 'field--node--uid',
],
],
'field__created' => [
'field__created' => [
'base hook' => 'field',
'base hook' => 'field',
 
'path' => $node_path . '/templates',
'template' => 'field--node--created',
'template' => 'field--node--created',
],
],
'field__comment__pid' => [
'field__comment__pid' => [
'base hook' => 'field',
'base hook' => 'field',
 
'path' => $node_path . '/templates',
'template' => 'field--node--title',
'template' => 'field--node--title',
],
],
];
];
Loading