Loading node_title.module +4 −4 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ function node_title_form_node_form_alter(&$form, FormStateInterface &$form_state $form['node_title_group'] = [ '#type' => 'details', '#title' => t('Node Title'), '#description' => t(''), '#description' => t('Modify the title with specific requirements.'), '#group' => 'advanced', '#open' => FALSE, '#access' => TRUE, Loading Loading @@ -50,7 +50,7 @@ function node_title_entity_base_field_info(EntityTypeInterface $entity_type) { function node_title_preprocess_page_title(array &$variables) { if ($node = \Drupal::routeMatch()->getParameter('node')) { if (!empty($node->node_title->value)) { $variables['title'] = t($node->node_title->value); $variables['title'] = ($node->node_title->value); } } } Loading @@ -63,7 +63,7 @@ function node_title_views_pre_render(&$view) { foreach ($result as $i => $row) { if (!empty(trim($view->result[$i]->_entity->node_title->value))) { $node_title = $view->result[$i]->_entity->node_title->value; $view->result[$i]->_entity->set('title', t($node_title)); $view->result[$i]->_entity->set('title', ($node_title)); } } } Loading
node_title.module +4 −4 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ function node_title_form_node_form_alter(&$form, FormStateInterface &$form_state $form['node_title_group'] = [ '#type' => 'details', '#title' => t('Node Title'), '#description' => t(''), '#description' => t('Modify the title with specific requirements.'), '#group' => 'advanced', '#open' => FALSE, '#access' => TRUE, Loading Loading @@ -50,7 +50,7 @@ function node_title_entity_base_field_info(EntityTypeInterface $entity_type) { function node_title_preprocess_page_title(array &$variables) { if ($node = \Drupal::routeMatch()->getParameter('node')) { if (!empty($node->node_title->value)) { $variables['title'] = t($node->node_title->value); $variables['title'] = ($node->node_title->value); } } } Loading @@ -63,7 +63,7 @@ function node_title_views_pre_render(&$view) { foreach ($result as $i => $row) { if (!empty(trim($view->result[$i]->_entity->node_title->value))) { $node_title = $view->result[$i]->_entity->node_title->value; $view->result[$i]->_entity->set('title', t($node_title)); $view->result[$i]->_entity->set('title', ($node_title)); } } }