public function getLabelForValue($value) {
    $settings = $this->getFieldSettings();
    $allowed_values = $settings['allowed_values'];

    foreach ($allowed_values as $allowed_value) {
      if (isset($allowed_value['value']) && $allowed_value['value'] === $value) {
        $label = $allowed_value['label'];
        return Html::escape($label);
      }
    }
  }
public function getLabelForValue($value) {
    $settings = $this->getFieldSettings();
    $allowed_values = $settings['allowed_values'];

    foreach ($allowed_values as $allowed_value) {
      if (isset($allowed_value['value']) && $allowed_value['value'] === $value) {
        $label = $allowed_value['label'];
        return Html::escape($label);
      }
    }
  }
public function getLabelForValue ( $ value ) { $ settings = $ this -> getFieldSettings ( ) ; $ allowed_values = $ settings [ 'allowed_values' ] ; foreach ( $ allowed_values as $ allowed_value ) { if ( isset ( $ allowed_value [ 'value' ] ) && $ allowed_value [ 'value' ] === $ value ) { $ label = $ allowed_value [ 'label' ] ; return Html :: escape ( $ label ) ; } } }
Display dropdown labels.
Display dropdown labels .