diff --git a/core/modules/node/src/NodeForm.php b/core/modules/node/src/NodeForm.php index 488e5df72e..b1d819e621 100644 --- a/core/modules/node/src/NodeForm.php +++ b/core/modules/node/src/NodeForm.php @@ -103,17 +103,17 @@ public function form(array $form, FormStateInterface $form_state) { '#type' => 'details', '#group' => 'advanced', '#weight' => -10, - '#title' => t('Status'), + '#title' => $this->t('Status'), ]; $form['meta']['published'] = [ '#type' => 'item', - '#markup' => $node->isPublished() ? t('Published') : t('Not published'), + '#markup' => $node->isPublished() ? $this->t('Published') : $this->t('Not published'), '#access' => !$node->isNew(), ]; - $changed = !$node->isNew() ? format_date($node->getChangedTime(), 'short') : t('Not saved yet'); + $changed = !$node->isNew() ? format_date($node->getChangedTime(), 'short') : $this->t('Not saved yet'); $form['meta']['changed'] = [ '#type' => 'item', - '#title' => t('Last saved'), + '#title' => $this->t('Last saved'), '#markup' => $changed, ]; @@ -122,7 +122,7 @@ public function form(array $form, FormStateInterface $form_state) { $form['revision_information'] = [ '#type' => 'details', '#group' => 'advanced', - '#title' => t('Revision information'), + '#title' => $this->t('Revision information'), // Open by default when "Create new revision" is checked. '#open' => $node->isNewRevision(), '#attributes' => [