Commented out actor types per case in entity relations widget
This commit is contained in:
parent
90c4462512
commit
24a8e8864f
@ -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) {
|
||||
|
Reference in New Issue
Block a user