From dbc38e8f61a93e9569df76886299939d9e0d63ce Mon Sep 17 00:00:00 2001 From: naomi Date: Sat, 4 Dec 2021 07:26:17 +0000 Subject: [PATCH] Added config_export stanzas to entity types --- modules/opencase_cases/opencase_cases.module | 2 +- modules/opencase_cases/src/Entity/OCCaseFeeType.php | 5 +++++ modules/opencase_cases/src/Entity/OCCaseProvisionType.php | 5 +++++ modules/opencase_cases/src/Entity/OCCaseType.php | 5 +++++ .../views.view.name_and_status_changes.yml | 0 modules/opencase_entities/src/Entity/OCActivityType.php | 5 +++++ modules/opencase_entities/src/Entity/OCActorType.php | 5 +++++ modules/opencase_entities/src/Entity/OCEventType.php | 5 +++++ .../src/Entity/OCOrganisationRelationType.php | 5 +++++ modules/opencase_entities/src/Entity/OCOrganisationType.php | 5 +++++ 10 files changed, 41 insertions(+), 1 deletion(-) rename modules/opencase_defaults/config/{install => optional}/views.view.name_and_status_changes.yml (100%) diff --git a/modules/opencase_cases/opencase_cases.module b/modules/opencase_cases/opencase_cases.module index 781a599..18ab180 100644 --- a/modules/opencase_cases/opencase_cases.module +++ b/modules/opencase_cases/opencase_cases.module @@ -17,7 +17,7 @@ function opencase_cases_help($route_name, RouteMatchInterface $route_match) { case 'help.page.opencase_cases': $output = ''; $output .= '

' . t('About') . '

'; - $output .= '

' . t('Provides case entities and a required field on activities linking them to a case.') . '

'; + $output .= '

' . t('Provides case entities and a required field on activities linking them to a case, plus case fee and case provision entities.') . '

'; return $output; default: diff --git a/modules/opencase_cases/src/Entity/OCCaseFeeType.php b/modules/opencase_cases/src/Entity/OCCaseFeeType.php index e5c5d95..1595b49 100644 --- a/modules/opencase_cases/src/Entity/OCCaseFeeType.php +++ b/modules/opencase_cases/src/Entity/OCCaseFeeType.php @@ -30,6 +30,11 @@ use Drupal\Core\Config\Entity\ConfigEntityBundleBase; * "label" = "label", * "uuid" = "uuid" * }, + * config_export = { + * "id" = "id", + * "label" = "label", + * "uuid" = "uuid" + * }, * links = { * "canonical" = "/opencase/oc_case_fee_type/{oc_case_fee_type}", * "add-form" = "/opencase/oc_case_fee_type/add", diff --git a/modules/opencase_cases/src/Entity/OCCaseProvisionType.php b/modules/opencase_cases/src/Entity/OCCaseProvisionType.php index 718d05f..6e1eae2 100644 --- a/modules/opencase_cases/src/Entity/OCCaseProvisionType.php +++ b/modules/opencase_cases/src/Entity/OCCaseProvisionType.php @@ -30,6 +30,11 @@ use Drupal\Core\Config\Entity\ConfigEntityBundleBase; * "label" = "label", * "uuid" = "uuid" * }, + * config_export = { + * "id" = "id", + * "label" = "label", + * "uuid" = "uuid" + * }, * links = { * "canonical" = "/opencase/oc_case_provision_type/{oc_case_provision_type}", * "add-form" = "/opencase/oc_case_provision_type/add", diff --git a/modules/opencase_cases/src/Entity/OCCaseType.php b/modules/opencase_cases/src/Entity/OCCaseType.php index 7e2d6b5..673f7ac 100644 --- a/modules/opencase_cases/src/Entity/OCCaseType.php +++ b/modules/opencase_cases/src/Entity/OCCaseType.php @@ -31,6 +31,11 @@ use Drupal\Core\Config\Entity\ConfigEntityBundleBase; * "label" = "label", * "uuid" = "uuid" * }, + * config_export = { + * "id" = "id", + * "label" = "label", + * "uuid" = "uuid" + * }, * links = { * "canonical" = "/admin/opencase/oc_case_type/{oc_case_type}", * "add-form" = "/admin/opencase/oc_case_type/add", diff --git a/modules/opencase_defaults/config/install/views.view.name_and_status_changes.yml b/modules/opencase_defaults/config/optional/views.view.name_and_status_changes.yml similarity index 100% rename from modules/opencase_defaults/config/install/views.view.name_and_status_changes.yml rename to modules/opencase_defaults/config/optional/views.view.name_and_status_changes.yml diff --git a/modules/opencase_entities/src/Entity/OCActivityType.php b/modules/opencase_entities/src/Entity/OCActivityType.php index 2b62eca..e5c23fe 100644 --- a/modules/opencase_entities/src/Entity/OCActivityType.php +++ b/modules/opencase_entities/src/Entity/OCActivityType.php @@ -31,6 +31,11 @@ use Drupal\Core\Config\Entity\ConfigEntityBundleBase; * "label" = "label", * "uuid" = "uuid" * }, + * config_export = { + * "id" = "id", + * "label" = "label", + * "uuid" = "uuid" + * }, * links = { * "canonical" = "/admin/opencase/oc_activity_type/{oc_activity_type}", * "add-form" = "/admin/opencase/oc_activity_type/add", diff --git a/modules/opencase_entities/src/Entity/OCActorType.php b/modules/opencase_entities/src/Entity/OCActorType.php index 0186825..885fa2a 100644 --- a/modules/opencase_entities/src/Entity/OCActorType.php +++ b/modules/opencase_entities/src/Entity/OCActorType.php @@ -31,6 +31,11 @@ use Drupal\Core\Config\Entity\ConfigEntityBundleBase; * "label" = "label", * "uuid" = "uuid" * }, + * config_export = { + * "id" = "id", + * "label" = "label", + * "uuid" = "uuid" + * }, * links = { * "canonical" = "/admin/opencase/oc_actor_type/{oc_actor_type}", * "add-form" = "/admin/opencase/oc_actor_type/add", diff --git a/modules/opencase_entities/src/Entity/OCEventType.php b/modules/opencase_entities/src/Entity/OCEventType.php index 70391f7..2da6e8f 100644 --- a/modules/opencase_entities/src/Entity/OCEventType.php +++ b/modules/opencase_entities/src/Entity/OCEventType.php @@ -30,6 +30,11 @@ use Drupal\Core\Config\Entity\ConfigEntityBundleBase; * "label" = "label", * "uuid" = "uuid" * }, + * config_export = { + * "id" = "id", + * "label" = "label", + * "uuid" = "uuid" + * }, * links = { * "canonical" = "/admin/opencase/oc_event_type/{oc_event_type}", * "add-form" = "/admin/opencase/oc_event_type/add", diff --git a/modules/opencase_entities/src/Entity/OCOrganisationRelationType.php b/modules/opencase_entities/src/Entity/OCOrganisationRelationType.php index 55e8726..e7c3c10 100644 --- a/modules/opencase_entities/src/Entity/OCOrganisationRelationType.php +++ b/modules/opencase_entities/src/Entity/OCOrganisationRelationType.php @@ -30,6 +30,11 @@ use Drupal\Core\Config\Entity\ConfigEntityBundleBase; * "label" = "label", * "uuid" = "uuid" * }, + * config_export = { + * "id" = "id", + * "label" = "label", + * "uuid" = "uuid" + * }, * links = { * "canonical" = "/admin/opencase/oc_organisation_relation_type/{oc_organisation_relation_type}", * "add-form" = "/admin/opencase/oc_organisation_relation_type/add", diff --git a/modules/opencase_entities/src/Entity/OCOrganisationType.php b/modules/opencase_entities/src/Entity/OCOrganisationType.php index 6e77063..d75c930 100644 --- a/modules/opencase_entities/src/Entity/OCOrganisationType.php +++ b/modules/opencase_entities/src/Entity/OCOrganisationType.php @@ -30,6 +30,11 @@ use Drupal\Core\Config\Entity\ConfigEntityBundleBase; * "label" = "label", * "uuid" = "uuid" * }, + * config_export = { + * "id" = "id", + * "label" = "label", + * "uuid" = "uuid" + * }, * links = { * "canonical" = "/admin/opencase/oc_organisation_type/{oc_organisation_type}", * "add-form" = "/admin/opencase/oc_organisation_type/add",