You are here

protected static function ShsTermSelect::getOptions in Webform Simple Hierarchical Select 8

Get options of all terms in given vocabulary.

Parameters

array $element: The element.

Return value

array An associative array of term options.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

1 call to ShsTermSelect::getOptions()
ShsTermSelect::setOptions in src/Element/ShsTermSelect.php

File

src/Element/ShsTermSelect.php, line 181

Class

ShsTermSelect
Provides a webform element for an shs term select menu.

Namespace

Drupal\webform_shs\Element

Code

protected static function getOptions(array $element) {
  return self::buildOptions($element['#vocabulary'], !empty($element['#cache_options']));
}