Changed max length of full name, and some other things

This commit is contained in:
2021-02-08 21:28:15 +00:00
parent 9646e216aa
commit 7a995060ce
6 changed files with 16 additions and 7 deletions

View File

@ -36,8 +36,8 @@ function opencase_no_cases_entity_base_field_info($entity_type) {
->setCardinality(-1)
->setDisplayOptions('form', [
'label' => 'above',
'type' => 'entity_reference_autocomplete',
'weight' => -2,
'type' => 'hidden',
'weight' => -100,
'settings' => [
'match_operator' => 'CONTAINS',
'size' => '60',
@ -47,6 +47,7 @@ function opencase_no_cases_entity_base_field_info($entity_type) {
])
->setDisplayOptions('view', [
'label' => 'above',
'weight' => -100,
])
->setDefaultValueCallback('opencase_no_cases_actors_involved_callback')
->setRequired(TRUE);

View File

@ -23,7 +23,8 @@ class ContextualMenu extends BlockBase {
*/
public function build() {
$route_name = \Drupal::routeMatch()->getRouteName();
if ($route_name == 'entity.oc_actor.canonical') {
if ($route_name == 'entity.oc_actor.canonical' && \Drupal::routeMatch()->getParameter('oc_actor')->bundle() == 'client' ) {
;
$markup = $this->actorPage();
$build = [];
$build['contextual_menu'] = [