Changed "Actor" to "Person" in a few places
This commit is contained in:
parent
da0c0ff1b5
commit
ad6811b5e9
@ -1,6 +1,6 @@
|
|||||||
name: 'Opencase Example Configuration'
|
name: 'Opencase Example Configuration'
|
||||||
type: module
|
type: module
|
||||||
description: 'Actor types, case types, activity types and user roles suited to an asylum advice group'
|
description: 'Person types, case types, activity types and user roles suited to an asylum advice group'
|
||||||
core: 8.x
|
core: 8.x
|
||||||
package: 'OpenCase'
|
package: 'OpenCase'
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
entity.oc_actor.add_form:
|
entity.oc_actor.add_form:
|
||||||
route_name: entity.oc_actor.add_page
|
route_name: entity.oc_actor.add_page
|
||||||
title: 'Add Actor'
|
title: 'Add Person'
|
||||||
appears_on:
|
appears_on:
|
||||||
- entity.oc_actor.collection
|
- entity.oc_actor.collection
|
||||||
entity.oc_actor_type.add_form:
|
entity.oc_actor_type.add_form:
|
||||||
route_name: entity.oc_actor_type.add_form
|
route_name: entity.oc_actor_type.add_form
|
||||||
title: 'Add Actor type'
|
title: 'Add Person type'
|
||||||
appears_on:
|
appears_on:
|
||||||
- entity.oc_actor_type.collection
|
- entity.oc_actor_type.collection
|
||||||
|
|
||||||
|
@ -17,8 +17,8 @@ use Drupal\user\UserInterface;
|
|||||||
*
|
*
|
||||||
* @ContentEntityType(
|
* @ContentEntityType(
|
||||||
* id = "oc_actor",
|
* id = "oc_actor",
|
||||||
* label = @Translation("Actor"),
|
* label = @Translation("Person"),
|
||||||
* bundle_label = @Translation("Actor type"),
|
* bundle_label = @Translation("Person type"),
|
||||||
* handlers = {
|
* handlers = {
|
||||||
* "storage" = "Drupal\opencase_entities\OCActorStorage",
|
* "storage" = "Drupal\opencase_entities\OCActorStorage",
|
||||||
* "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",
|
* "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",
|
||||||
|
@ -55,13 +55,13 @@ class OCActorForm extends ContentEntityForm {
|
|||||||
|
|
||||||
switch ($status) {
|
switch ($status) {
|
||||||
case SAVED_NEW:
|
case SAVED_NEW:
|
||||||
drupal_set_message($this->t('Created the %label Actor.', [
|
drupal_set_message($this->t('Created %label.', [
|
||||||
'%label' => $entity->label(),
|
'%label' => $entity->label(),
|
||||||
]));
|
]));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
drupal_set_message($this->t('Saved the %label Actor.', [
|
drupal_set_message($this->t('Saved %label.', [
|
||||||
'%label' => $entity->label(),
|
'%label' => $entity->label(),
|
||||||
]));
|
]));
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ dependencies:
|
|||||||
- search_api
|
- search_api
|
||||||
- user
|
- user
|
||||||
id: actor_search
|
id: actor_search
|
||||||
label: 'Actor Search'
|
label: 'Person Search'
|
||||||
module: views
|
module: views
|
||||||
description: ''
|
description: ''
|
||||||
tag: ''
|
tag: ''
|
||||||
|
@ -20,7 +20,7 @@ class EntityTypeRelationsWidget {
|
|||||||
$options[$machine_name] = $info['label'];
|
$options[$machine_name] = $info['label'];
|
||||||
}
|
}
|
||||||
$form['allowed_actor_types'] = array(
|
$form['allowed_actor_types'] = array(
|
||||||
'#title' => t('Actor types'),
|
'#title' => t('Allowed involved parties'),
|
||||||
'#description' => t('Types of people that can be involved in this kind of case.'),
|
'#description' => t('Types of people that can be involved in this kind of case.'),
|
||||||
'#type' => 'checkboxes',
|
'#type' => 'checkboxes',
|
||||||
'#options' => $options
|
'#options' => $options
|
||||||
|
@ -21,7 +21,7 @@ class ActorTypeHelp extends BlockBase {
|
|||||||
public function build() {
|
public function build() {
|
||||||
return array(
|
return array(
|
||||||
'#markup' => "
|
'#markup' => "
|
||||||
<h3>All actor types have contact details fields by default. Other fields can be added and managed here.</h3>
|
<h3>All person types have contact details fields by default. Other fields can be added and managed here.</h3>
|
||||||
|
|
||||||
"
|
"
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user