Added help block for managing actor type fields
This commit is contained in:
parent
10b99f132e
commit
fdd07ea104
25
config/install/block.block.actortypehelp.yml
Normal file
25
config/install/block.block.actortypehelp.yml
Normal 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: { }
|
30
src/Plugin/Block/ActorTypeHelp.php
Normal file
30
src/Plugin/Block/ActorTypeHelp.php
Normal 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>
|
||||||
|
|
||||||
|
"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Reference in New Issue
Block a user