You are here

public static function ShsTermSelect::addDepthLevelAjax in Webform Simple Hierarchical Select 8

Ajax callback for the depth labels.

Parameters

array $form: Form array.

\Drupal\Core\Form\FormStateInterface $form_state: Form state object.

File

src/Plugin/WebformElement/ShsTermSelect.php, line 167

Class

ShsTermSelect
Provides a 'webform_shs_term_select' Webform element.

Namespace

Drupal\webform_shs\Plugin\WebformElement

Code

public static function addDepthLevelAjax(array $form, FormStateInterface $form_state) {
  return $form['properties']['term_reference']['depth_labels'];
}