Skip to content
Snippets Groups Projects
Commit 80128b92 authored by Mingsong Hu's avatar Mingsong Hu
Browse files

Remove text "Entity" from titles

parent 2ae98411
No related branches found
No related tags found
No related merge requests found
......@@ -7,8 +7,8 @@ hierarchy_manager.hm_config_form:
# HM Display Profile Entity menu items definition
entity.hm_display_profile.collection:
title: 'HM Display Profile Entity'
title: 'HM Display Profile'
route_name: entity.hm_display_profile.collection
description: 'List HM Display Profile Entity (bundles)'
description: 'List HM Display Profiles'
parent: system.admin_structure
weight: 99
# HM Display Profile list
entity.hm_display_profile.collection:
path: '/admin/structure/hm_display_profile'
defaults:
_entity_list: 'hm_display_profile'
_title: 'HM Display Profiles'
requirements:
_permission: 'administer site configuration'
# Hierarchy Manager Configuration
hierarchy_manager.hm_config_form:
path: '/admin/config/user-interface/hierarchy_manager/config'
......
......@@ -60,7 +60,7 @@ class HmDisplayProfileForm extends EntityForm {
'#title' => $this->t('Label'),
'#maxlength' => 255,
'#default_value' => $hm_display_profile->label(),
'#description' => $this->t("Label for the HM Display Profile Entity."),
'#description' => $this->t("Label for the HM Display Profile."),
'#required' => TRUE,
];
......@@ -137,13 +137,13 @@ class HmDisplayProfileForm extends EntityForm {
switch ($status) {
case SAVED_NEW:
$this->messenger()->addMessage($this->t('Created the %label HM Display Profile Entity.', [
$this->messenger()->addMessage($this->t('Created the %label HM Display Profile.', [
'%label' => $hm_display_profile->label(),
]));
break;
default:
$this->messenger()->addMessage($this->t('Saved the %label HM Display Profile Entity.', [
$this->messenger()->addMessage($this->t('Saved the %label HM Display Profile.', [
'%label' => $hm_display_profile->label(),
]));
}
......
......@@ -14,7 +14,7 @@ class HmDisplayProfileListBuilder extends ConfigEntityListBuilder {
* {@inheritdoc}
*/
public function buildHeader() {
$header['label'] = $this->t('HM Display Profile Entity');
$header['label'] = $this->t('HM Display Profile');
$header['id'] = $this->t('Machine name');
return $header + parent::buildHeader();
}
......@@ -25,7 +25,7 @@ class HmDisplayProfileListBuilder extends ConfigEntityListBuilder {
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity->label();
$row['id'] = $entity->id();
// You probably want a few more properties here...
return $row + parent::buildRow($entity);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment