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', []);
    }
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', []);
    }
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' , [ ] ) ; }
Returns display labels to show in the dropdown, keyed by value.

@return string[]
Returns display labels to show in the dropdown keyed by value .