Skip to content
Snippets Groups Projects

Issue #3143678by ckng: Allow node/entity to display title/label field as normal

3 unresolved threads

Closes #3143678

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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
    Loading