src/Form/NT8PropertyFormBase.php
public function setupAreaLocTaxonomy(array &$form, FormStateInterface $formState) {
    $limit_arealocs = $formState->getValue('attribute_code_limit') ?: NULL;

    $new_arr = [];
    if (isset($limit_arealocs)) {
      $new_arr = array_map(
        'trim',
        explode(',', $limit_arealocs)
      ) ?: [];
    }

    $locData = $this->propertyMethods->getAreaLocationDataFromTabs($new_arr);
    $arealocDataUpdateStatus = $this->propertyMethods->createAreaLocTermsFromTabs($locData);

    drupal_set_message(print_r('Updated Areas: ' . $arealocDataUpdateStatus[0], TRUE));
    drupal_set_message(print_r('Updated Locations: ' . $arealocDataUpdateStatus[1], TRUE));
  }
public function setupAreaLocTaxonomy(array &$form, FormStateInterface $formState) {
    $limit_arealocs = $formState->getValue('attribute_code_limit') ?: NULL;

    $new_arr = [];
    if (isset($limit_arealocs)) {
      $new_arr = array_map(
        'trim',
        explode(',', $limit_arealocs)
      ) ?: [];
    }

    $locData = $this->propertyMethods->getAreaLocationDataFromTabs($new_arr);
    $arealocDataUpdateStatus = $this->propertyMethods->createAreaLocTermsFromTabs($locData);

    drupal_set_message(print_r('Updated Areas: ' . $arealocDataUpdateStatus[0], TRUE));
    drupal_set_message(print_r('Updated Locations: ' . $arealocDataUpdateStatus[1], TRUE));
  }
public function setupAreaLocTaxonomy ( array & $ form , FormStateInterface $ formState ) { $ limit_arealocs = $ formState -> getValue ( 'attribute_code_limit' ) ? : NULL ; $ new_arr = [ ] ; if ( isset ( $ limit_arealocs ) ) { $ new_arr = array_map ( 'trim' , explode ( ',' , $ limit_arealocs ) ) ? : [ ] ; } $ locData = $ this -> propertyMethods -> getAreaLocationDataFromTabs ( $ new_arr ) ; $ arealocDataUpdateStatus = $ this -> propertyMethods -> createAreaLocTermsFromTabs ( $ locData ) ; drupal_set_message ( print_r ( 'Updated Areas: ' . $ arealocDataUpdateStatus [ 0 ] , TRUE ) ) ; drupal_set_message ( print_r ( 'Updated Locations: ' . $ arealocDataUpdateStatus [ 1 ] , TRUE ) ) ; }
Runs the necessary methods in the property service to setup the taxonomy.

@see ::createAreaLocTermsFromTabs
Runs the necessary methods in the property service to setup the taxonomy .