Actor -> Person. Need to update entities
This commit is contained in:
parent
fd47bee26a
commit
e0260256fa
@ -9,7 +9,7 @@ use Drupal\Core\Config\Entity\ConfigEntityBundleBase;
|
||||
*
|
||||
* @ConfigEntityType(
|
||||
* id = "oc_actor_type",
|
||||
* label = @Translation("Actor type"),
|
||||
* label = @Translation("Person type"),
|
||||
* handlers = {
|
||||
* "access" = "Drupal\opencase_entities\OCActorTypeAccessControlHandler",
|
||||
* "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",
|
||||
|
@ -22,7 +22,7 @@ class OCActorTypeForm extends EntityForm {
|
||||
'#title' => $this->t('Label'),
|
||||
'#maxlength' => 255,
|
||||
'#default_value' => $oc_actor_type->label(),
|
||||
'#description' => $this->t("Label for the Actor type."),
|
||||
'#description' => $this->t("Label for the Person type."),
|
||||
'#required' => TRUE,
|
||||
];
|
||||
|
||||
@ -49,13 +49,13 @@ class OCActorTypeForm extends EntityForm {
|
||||
|
||||
switch ($status) {
|
||||
case SAVED_NEW:
|
||||
drupal_set_message($this->t('Created the %label Actor type.', [
|
||||
drupal_set_message($this->t('Created the %label Person type.', [
|
||||
'%label' => $oc_actor_type->label(),
|
||||
]));
|
||||
break;
|
||||
|
||||
default:
|
||||
drupal_set_message($this->t('Saved the %label Actor type.', [
|
||||
drupal_set_message($this->t('Saved the %label Person type.', [
|
||||
'%label' => $oc_actor_type->label(),
|
||||
]));
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ class OCActorTypeListBuilder extends ConfigEntityListBuilder {
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function buildHeader() {
|
||||
$header['label'] = $this->t('Actor type');
|
||||
$header['label'] = $this->t('Person type');
|
||||
$header['id'] = $this->t('Machine name');
|
||||
return $header + parent::buildHeader();
|
||||
}
|
||||
|
Reference in New Issue
Block a user