Added help block for managing actor type fields

This commit is contained in:
Naomi 2018-10-24 18:24:20 +01:00
parent 10b99f132e
commit fdd07ea104
2 changed files with 55 additions and 0 deletions

View File

@ -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: { }

View File

@ -0,0 +1,30 @@
<?php
namespace Drupal\opencase\Plugin\Block;
use Drupal\Core\Block\BlockBase;
/**
* Provides a Block with some help text about actor type fields
*
* @Block(
* id = "actor_type_help",
* admin_label = @Translation("Actor Type Help"),
* category = @Translation("Help"),
* )
*/
class ActorTypeHelp extends BlockBase {
/**
* {@inheritdoc}
*/
public function build() {
return array(
'#markup' => "
<h3>All actor types have contact details fields by default. Other fields can be added and managed here.</h3>
"
);
}
}