Open pingevt opened 5 years ago
need something like this in the display title module
function b_get_node_title($node) { if ( $node->hasField('field_display_title')) { // Title. $title = $node->label(); $display_title = $node->field_display_title->getValue(); if (!empty($display_title)) { $display_title = current($display_title); $title = preg_replace("/<\\/?p(.|\\s)*?>/", "", $display_title['value']); $title = Markup::create($title); } } return $title; }
need something like this in the display title module