original_string: protected function getDropdownLabels()
      {
          if ($source = array_get($this->field->options(), 'label_source')) {
  
              $labels = $this->getDropdownLabelsFromSource($source);
  
              if (false !== $labels) {
                  return $labels;
              }
          }
  
          $labels = array_get($this->field->options(), 'labels_translated', []);
  
          if (count($labels)) {
              return array_map('cms_trans', $labels);
          }
  
          return array_get($this->field->options(), 'labels', []);
      }
code: protected function getDropdownLabels()
      {
          if ($source = array_get($this->field->options(), 'label_source')) {
  
              $labels = $this->getDropdownLabelsFromSource($source);
  
              if (false !== $labels) {
                  return $labels;
              }
          }
  
          $labels = array_get($this->field->options(), 'labels_translated', []);
  
          if (count($labels)) {
              return array_map('cms_trans', $labels);
          }
  
          return array_get($this->field->options(), 'labels', []);
      }
code_tokens: protected function getDropdownLabels ( ) { if ( $ source = array_get ( $ this -> field -> options ( ) , 'label_source' ) ) { $ labels = $ this -> getDropdownLabelsFromSource ( $ source ) ; if ( false !== $ labels ) { return $ labels ; } } $ labels = array_get ( $ this -> field -> options ( ) , 'labels_translated' , [ ] ) ; if ( count ( $ labels ) ) { return array_map ( 'cms_trans' , $ labels ) ; } return array_get ( $ this -> field -> options ( ) , 'labels' , [ ] ) ; }
docstring: Returns display labels to show in the dropdown, keyed by value.
  
  @return string[]
docstring_tokens: Returns display labels to show in the dropdown keyed by value .