public function isDisabled()
    {
        if (parent::isDisabled() && 'select' === $this->type) {
            return true;
        }

        foreach ($this->options as $option) {
            if ($option['value'] == $this->value && $option['disabled']) {
                return true;
            }
        }

        return false;
    }
public function isDisabled()
    {
        if (parent::isDisabled() && 'select' === $this->type) {
            return true;
        }

        foreach ($this->options as $option) {
            if ($option['value'] == $this->value && $option['disabled']) {
                return true;
            }
        }

        return false;
    }
public function isDisabled ( ) { if ( parent :: isDisabled ( ) && 'select' === $ this -> type ) { return true ; } foreach ( $ this -> options as $ option ) { if ( $ option [ 'value' ] == $ this -> value && $ option [ 'disabled' ] ) { return true ; } } return false ; }
Check if the current selected option is disabled.

@return bool
Check if the current selected option is disabled .