You are here

protected function OpignoGroupMembershipBoolean::exposedTranslate in Opigno Learning path 3.x

Same name and namespace in other branches
  1. 8 src/Plugin/views/filter/OpignoGroupMembershipBoolean.php \Drupal\opigno_learning_path\Plugin\views\filter\OpignoGroupMembershipBoolean::exposedTranslate()

Make some translations to a form item to make it more suitable to exposing.

Overrides FilterPluginBase::exposedTranslate

File

src/Plugin/views/filter/OpignoGroupMembershipBoolean.php, line 80

Class

OpignoGroupMembershipBoolean
Filter handler to show trainings filter.

Namespace

Drupal\opigno_learning_path\Plugin\views\filter

Code

protected function exposedTranslate(&$form, $type) {
  parent::exposedTranslate($form, $type);
  if ($form['#type'] == 'select') {
    $form['#type'] = 'radios';
  }
}