original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Check if the current selected option is disabled.
  
  @return bool
docstring_tokens: Check if the current selected option is disabled .