From fdd07ea104d426373cb1eec33014cd8cd7b66b4d Mon Sep 17 00:00:00 2001 From: Naomi Date: Wed, 24 Oct 2018 18:24:20 +0100 Subject: [PATCH] Added help block for managing actor type fields --- config/install/block.block.actortypehelp.yml | 25 ++++++++++++++++ src/Plugin/Block/ActorTypeHelp.php | 30 ++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 config/install/block.block.actortypehelp.yml create mode 100644 src/Plugin/Block/ActorTypeHelp.php diff --git a/config/install/block.block.actortypehelp.yml b/config/install/block.block.actortypehelp.yml new file mode 100644 index 0000000..94783e9 --- /dev/null +++ b/config/install/block.block.actortypehelp.yml @@ -0,0 +1,25 @@ +langcode: en +status: true +dependencies: + module: + - opencase + - system + theme: + - bartik +id: actortypehelp +theme: bartik +region: content +weight: -11 +provider: null +plugin: actor_type_help +settings: + id: actor_type_help + label: 'Actor Type Help' + provider: opencase + label_display: '0' +visibility: + request_path: + id: request_path + pages: '/admin/opencase/oc_actor_type/*/edit/fields' + negate: false + context_mapping: { } diff --git a/src/Plugin/Block/ActorTypeHelp.php b/src/Plugin/Block/ActorTypeHelp.php new file mode 100644 index 0000000..fccc60b --- /dev/null +++ b/src/Plugin/Block/ActorTypeHelp.php @@ -0,0 +1,30 @@ + " +

All actor types have contact details fields by default. Other fields can be added and managed here.

+ + " + ); + } + +}