Field/ChoiceFormField.php
private function buildOptionValue(\DOMElement $node): array
    {
        $option = array();

        $defaultDefaultValue = 'select' === $this->node->nodeName ? '' : 'on';
        $defaultValue = (isset($node->nodeValue) && !empty($node->nodeValue)) ? $node->nodeValue : $defaultDefaultValue;
        $option['value'] = $node->hasAttribute('value') ? $node->getAttribute('value') : $defaultValue;
        $option['disabled'] = $node->hasAttribute('disabled');

        return $option;
    }
private function buildOptionValue(\DOMElement $node): array
    {
        $option = array();

        $defaultDefaultValue = 'select' === $this->node->nodeName ? '' : 'on';
        $defaultValue = (isset($node->nodeValue) && !empty($node->nodeValue)) ? $node->nodeValue : $defaultDefaultValue;
        $option['value'] = $node->hasAttribute('value') ? $node->getAttribute('value') : $defaultValue;
        $option['disabled'] = $node->hasAttribute('disabled');

        return $option;
    }
private function buildOptionValue ( \ DOMElement $ node ) : array { $ option = array ( ) ; $ defaultDefaultValue = 'select' === $ this -> node -> nodeName ? '' : 'on' ; $ defaultValue = ( isset ( $ node -> nodeValue ) && ! empty ( $ node -> nodeValue ) ) ? $ node -> nodeValue : $ defaultDefaultValue ; $ option [ 'value' ] = $ node -> hasAttribute ( 'value' ) ? $ node -> getAttribute ( 'value' ) : $ defaultValue ; $ option [ 'disabled' ] = $ node -> hasAttribute ( 'disabled' ) ; return $ option ; }
Returns option value with associated disabled flag.
Returns option value with associated disabled flag .