protected function OpignoGroupMembershipBoolean::exposedTranslate in Opigno Learning path 8
Same name and namespace in other branches
- 3.x 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\filterCode
protected function exposedTranslate(&$form, $type) {
parent::exposedTranslate($form, $type);
if ($form['#type'] == 'select') {
$form['#type'] = 'radios';
}
}