Skip to content
Snippets Groups Projects

#3371841 - Add templates

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