diff --git a/modules/opencase_defaults/src/EntityTypeRelationsWidget.php b/modules/opencase_defaults/src/EntityTypeRelationsWidget.php index 4eb3967..32a7f25 100644 --- a/modules/opencase_defaults/src/EntityTypeRelationsWidget.php +++ b/modules/opencase_defaults/src/EntityTypeRelationsWidget.php @@ -14,17 +14,17 @@ class EntityTypeRelationsWidget { * $form - the form to be modified (reference) */ public function setup(&$form) { - $actor_types = \Drupal::service('entity_type.bundle.info')->getBundleInfo('oc_actor'); - $options = array(); - foreach($actor_types as $machine_name => $info) { - $options[$machine_name] = $info['label']; - } - $form['allowed_actor_types'] = array( - '#title' => t('Allowed involved parties'), - '#description' => t('Types of people that can be involved in this kind of case.'), - '#type' => 'checkboxes', - '#options' => $options - ); + # $actor_types = \Drupal::service('entity_type.bundle.info')->getBundleInfo('oc_actor'); + # $options = array(); + # foreach($actor_types as $machine_name => $info) { + # $options[$machine_name] = $info['label']; + # } + # $form['allowed_actor_types'] = array( + # '#title' => t('Allowed involved parties'), + # '#description' => t('Types of people that can be involved in this kind of case.'), + # '#type' => 'checkboxes', + # '#options' => $options + # ); $activity_types = \Drupal::service('entity_type.bundle.info')->getBundleInfo('oc_activity'); $options = array(); foreach($activity_types as $machine_name => $info) {