From 48e6ae4196c823d32cdc9447dec76e48ecd022f7 Mon Sep 17 00:00:00 2001 From: naomi Date: Mon, 13 Sep 2021 14:31:12 +0100 Subject: [PATCH] Changed description of Published field --- modules/opencase_cases/src/Entity/OCCase.php | 2 +- modules/opencase_entities/src/Entity/OCActivity.php | 2 +- modules/opencase_entities/src/Entity/OCActor.php | 2 +- modules/opencase_entities/src/Entity/OCEvent.php | 2 +- modules/opencase_entities/src/Entity/OCOrganisation.php | 1 + 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/opencase_cases/src/Entity/OCCase.php b/modules/opencase_cases/src/Entity/OCCase.php index e6d3991..483e41f 100644 --- a/modules/opencase_cases/src/Entity/OCCase.php +++ b/modules/opencase_cases/src/Entity/OCCase.php @@ -206,7 +206,7 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface { // not currently used. Will add form and view settings when ready $fields['status'] = BaseFieldDefinition::create('boolean') ->setLabel(t('Publishing status')) - ->setDescription(t('A boolean indicating whether the Case is published.')) + ->setDescription('If this box is not ticked this record will be hidden from view for most users. Users with access to unpublished entities will be able to restore it if needed.') ->setRevisionable(TRUE) ->setDisplayConfigurable("form", TRUE) ->setDefaultValue(TRUE); diff --git a/modules/opencase_entities/src/Entity/OCActivity.php b/modules/opencase_entities/src/Entity/OCActivity.php index b4adfb5..c674323 100644 --- a/modules/opencase_entities/src/Entity/OCActivity.php +++ b/modules/opencase_entities/src/Entity/OCActivity.php @@ -242,7 +242,7 @@ class OCActivity extends RevisionableContentEntityBase implements OCActivityInte $fields['status'] = BaseFieldDefinition::create('boolean') ->setLabel(t('Publishing status')) - ->setDescription(t('A boolean indicating whether the Activity is published.')) + ->setDescription('If this box is not ticked this record will be hidden from view for most users. Users with access to unpublished entities will be able to restore it if needed.') ->setRevisionable(TRUE) ->setDisplayConfigurable('form', TRUE) ->setDefaultValue(TRUE); diff --git a/modules/opencase_entities/src/Entity/OCActor.php b/modules/opencase_entities/src/Entity/OCActor.php index b9cbd75..f977ba3 100644 --- a/modules/opencase_entities/src/Entity/OCActor.php +++ b/modules/opencase_entities/src/Entity/OCActor.php @@ -215,7 +215,7 @@ class OCActor extends RevisionableContentEntityBase implements OCActorInterface $fields['status'] = BaseFieldDefinition::create('boolean') ->setLabel(t('Publishing status')) - ->setDescription(t('Whether this record is published.')) + ->setDescription('If this box is not ticked this record will be hidden from view for most users. Users with access to unpublished entities will be able to restore it if needed.') ->setRevisionable(TRUE) ->setDisplayConfigurable("form", true) ->setDefaultValue(TRUE); diff --git a/modules/opencase_entities/src/Entity/OCEvent.php b/modules/opencase_entities/src/Entity/OCEvent.php index 26dea7f..99b430d 100644 --- a/modules/opencase_entities/src/Entity/OCEvent.php +++ b/modules/opencase_entities/src/Entity/OCEvent.php @@ -169,7 +169,7 @@ class OCEvent extends ContentEntityBase implements OCEventInterface { $fields['status'] = BaseFieldDefinition::create('boolean') ->setLabel(t('Publishing status')) - ->setDescription(t('Whether this record is published.')) + ->setDescription('If this box is not ticked this record will be hidden from view for most users. Users with access to unpublished entities will be able to restore it if needed.') ->setRevisionable(TRUE) ->setDisplayConfigurable("form", true) ->setDefaultValue(TRUE); diff --git a/modules/opencase_entities/src/Entity/OCOrganisation.php b/modules/opencase_entities/src/Entity/OCOrganisation.php index 12f21f9..625de7c 100644 --- a/modules/opencase_entities/src/Entity/OCOrganisation.php +++ b/modules/opencase_entities/src/Entity/OCOrganisation.php @@ -458,6 +458,7 @@ class OCOrganisation extends EditorialContentEntityBase implements OCOrganisatio $fields['status'] = BaseFieldDefinition::create('boolean') ->setLabel(t('Published')) + ->setDescription('If this box is not ticked this record will be hidden from view for most users. Users with access to unpublished entities will be able to restore it if needed.') ->setRevisionable(TRUE) ->setDisplayConfigurable("form", true) ->setDefaultValue(TRUE);