Issue #3143678by ckng: Allow node/entity to display title/label field as normal
3 unresolved threads
Closes #3143678
Merge request reports
Activity
added 1 commit
- 2ccd0a85 - Adapting d70rr3s's solution to current branch
added 17 commits
-
2ccd0a85...6f1c8812 - 4 commits from branch
project:8.x-1.x
- 6f1c8812...df52f601 - 3 earlier commits
- b344a5c5 - 2.x release now working with D9.4
- 434b8234 - Issue #3276932 by AdamPS: Corruption of title that resembles HTML
- cf51fe7d - Issue #3291074 by Webbeh, AdamPS, Neograph734: Automatically remove...
- 216964e9 - git commit -m 'Issue #3288431 by Project Update Bot: Automated Drupal 10...
- 9b7af3b6 - git commit -m 'Issue #3295714 by AdamPS: Remove outdated install code'...
- 15d6a2b4 - Remove drupalci.yml to fix the tests
- 1fbf2f70 - Fix coding standards
- 5b6817e7 - Issue #3342397 by AdamPS: Use dependency injection in SubmittedFormatter
- b88e79ea - Issue #3288431 by AdamPS: Drupal 10 compatibility fixes: fix tests
- 95a5723c - Merge branch manage_display:2.0.x into 3143678-allow-nodeentity-to
Toggle commit list-
2ccd0a85...6f1c8812 - 4 commits from branch
added 21 commits
-
95a5723c...8665b105 - 19 commits from branch
project:3.x
- ea608dd7 - Merge branch '3.x' of https://git.drupalcode.org/project/manage_display into...
- ab1e368e - Issue #3143678 - Fix 3.x version
-
95a5723c...8665b105 - 19 commits from branch
380 381 } 381 382 } 382 383 } 384 385 /** 386 * Implements hook_ENTITY_TYPE_view(). 387 */ 388 function manage_display_node_view(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode) { 389 if (isset($build['title']) && NULL !== $display->getComponent('title')) { 390 $build['_title'] = NestedArray::mergeDeep([], $build['title']); 380 381 } 381 382 } 382 383 } 384 385 /** 386 * Implements hook_ENTITY_TYPE_view(). 387 */ 388 function manage_display_node_view(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode) { 382 383 } 384 385 /** 386 * Implements hook_ENTITY_TYPE_view(). 387 */ 388 function manage_display_node_view(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode) { 389 if (isset($build['title']) && NULL !== $display->getComponent('title')) { 390 $build['_title'] = NestedArray::mergeDeep([], $build['title']); 391 } 392 } 393 394 /** 395 * Implements hook_ENTITY_TYPE_view_alter(). 396 */ 397 function manage_display_node_view_alter(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display) { 398 if (isset($build['_title']) && isset($build['#group_children']['title'])) {
Please register or sign in to reply