public function JumpMenu::getFieldOptions in Views Jump Menu 8
Generate options array for the select inputs with available field labels.
Return value
array Options array for the select.
1 call to JumpMenu::getFieldOptions()
- JumpMenu::buildOptionsForm in src/
Plugin/ views/ style/ JumpMenu.php - Provide a form to edit options for this plugin.
File
- src/
Plugin/ views/ style/ JumpMenu.php, line 59
Class
- JumpMenu
- Class JumpMenu.
Namespace
Drupal\views_jump_menu\Plugin\views\styleCode
public function getFieldOptions() {
$labels = $this->displayHandler
->getFieldLabels(TRUE);
return array_merge([
'' => '-- Select --',
], $labels);
}