diff --git a/modules/opencase_cases/src/Plugin/Block/AddCase.php b/modules/opencase_cases/src/Plugin/Block/AddCase.php deleted file mode 100644 index ac7545c..0000000 --- a/modules/opencase_cases/src/Plugin/Block/AddCase.php +++ /dev/null @@ -1,40 +0,0 @@ -getParameter('oc_actor')->id(); - $case_types = \Drupal::service('entity_type.bundle.info')->getBundleInfo('oc_case'); - $markup = ""; - return array( - '#markup' => $markup - ); - } - - - public function getCacheMaxAge():int { - return 0; - } - -} diff --git a/src/Plugin/Block/AddCase.php b/src/Plugin/Block/AddCase.php index 55b9782..d4143ba 100644 --- a/src/Plugin/Block/AddCase.php +++ b/src/Plugin/Block/AddCase.php @@ -26,8 +26,7 @@ class AddCase extends BlockBase { $case_types = $this->getCaseTypesToDisplay($actorType); foreach($case_types as $id => $info) { $label = $info['label']; - $markup .= "foo"; - #$markup .= "
  • $label
  • "; + $markup .= "
  • $label
  • "; } $markup .= ""; return array('#markup' => $markup);