Actor -> Person. Need to update entities

This commit is contained in:
Naomi 2018-12-15 14:00:26 +00:00
parent fd47bee26a
commit e0260256fa
3 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@ use Drupal\Core\Config\Entity\ConfigEntityBundleBase;
* *
* @ConfigEntityType( * @ConfigEntityType(
* id = "oc_actor_type", * id = "oc_actor_type",
* label = @Translation("Actor type"), * label = @Translation("Person type"),
* handlers = { * handlers = {
* "access" = "Drupal\opencase_entities\OCActorTypeAccessControlHandler", * "access" = "Drupal\opencase_entities\OCActorTypeAccessControlHandler",
* "view_builder" = "Drupal\Core\Entity\EntityViewBuilder", * "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",

View File

@ -22,7 +22,7 @@ class OCActorTypeForm extends EntityForm {
'#title' => $this->t('Label'), '#title' => $this->t('Label'),
'#maxlength' => 255, '#maxlength' => 255,
'#default_value' => $oc_actor_type->label(), '#default_value' => $oc_actor_type->label(),
'#description' => $this->t("Label for the Actor type."), '#description' => $this->t("Label for the Person type."),
'#required' => TRUE, '#required' => TRUE,
]; ];
@ -49,13 +49,13 @@ class OCActorTypeForm extends EntityForm {
switch ($status) { switch ($status) {
case SAVED_NEW: 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(), '%label' => $oc_actor_type->label(),
])); ]));
break; break;
default: 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(), '%label' => $oc_actor_type->label(),
])); ]));
} }

View File

@ -14,7 +14,7 @@ class OCActorTypeListBuilder extends ConfigEntityListBuilder {
* {@inheritdoc} * {@inheritdoc}
*/ */
public function buildHeader() { public function buildHeader() {
$header['label'] = $this->t('Actor type'); $header['label'] = $this->t('Person type');
$header['id'] = $this->t('Machine name'); $header['id'] = $this->t('Machine name');
return $header + parent::buildHeader(); return $header + parent::buildHeader();
} }