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,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>
"
);
}
}