only in patch2: unchanged: --- a/core/modules/field_ui/src/EntityDisplayModeListBuilder.php +++ b/core/modules/field_ui/src/EntityDisplayModeListBuilder.php @@ -60,7 +60,7 @@ public static function createInstance(ContainerInterface $container, EntityTypeI * {@inheritdoc} */ public function buildHeader() { - $header['label'] = t('Name'); + $header['label'] = $this->t('Name'); return $header + parent::buildHeader(); } @@ -120,7 +120,7 @@ public function render() { 'data' => array( '#type' => 'link', '#url' => Url::fromRoute($short_type == 'view' ? 'entity.entity_view_mode.add_form' : 'entity.entity_form_mode.add_form', ['entity_type_id' => $entity_type]), - '#title' => t('Add new %label @entity-type', array('%label' => $this->entityTypes[$entity_type]->getLabel(), '@entity-type' => $this->entityType->getLowercaseLabel())), + '#title' => $this->t('Add new %label @entity-type', array('%label' => $this->entityTypes[$entity_type]->getLabel(), '@entity-type' => $this->entityType->getLowercaseLabel())), ), 'colspan' => count($table['#header']), ); only in patch2: unchanged: --- a/core/modules/field_ui/src/FieldStorageConfigListBuilder.php +++ b/core/modules/field_ui/src/FieldStorageConfigListBuilder.php @@ -85,12 +85,12 @@ public static function createInstance(ContainerInterface $container, EntityTypeI * {@inheritdoc} */ public function buildHeader() { - $header['id'] = t('Field name'); + $header['id'] = $this->t('Field name'); $header['type'] = array( - 'data' => t('Field type'), + 'data' => $this->t('Field type'), 'class' => array(RESPONSIVE_PRIORITY_MEDIUM), ); - $header['usage'] = t('Used in'); + $header['usage'] = $this->t('Used in'); return $header; } @@ -100,14 +100,14 @@ public function buildHeader() { public function buildRow(EntityInterface $field_storage) { if ($field_storage->isLocked()) { $row['class'] = array('menu-disabled'); - $row['data']['id'] = t('@field_name (Locked)', array('@field_name' => $field_storage->getName())); + $row['data']['id'] = $this->t('@field_name (Locked)', array('@field_name' => $field_storage->getName())); } else { $row['data']['id'] = $field_storage->getName(); } $field_type = $this->fieldTypes[$field_storage->getType()]; - $row['data']['type'] = t('@type (module: @module)', array('@type' => $field_type['label'], '@module' => $field_type['provider'])); + $row['data']['type'] = $this->t('@type (module: @module)', array('@type' => $field_type['label'], '@module' => $field_type['provider'])); $usage = array(); foreach ($field_storage->getBundles() as $bundle) {