You are here

public function FormField::isDisabled in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dom-crawler/Field/FormField.php \Symfony\Component\DomCrawler\Field\FormField::isDisabled()

Check if the current field is disabled.

Return value

bool

1 method overrides FormField::isDisabled()
ChoiceFormField::isDisabled in vendor/symfony/dom-crawler/Field/ChoiceFormField.php
Check if the current selected option is disabled.

File

vendor/symfony/dom-crawler/Field/FormField.php, line 105

Class

FormField
FormField is the abstract class for all form fields.

Namespace

Symfony\Component\DomCrawler\Field

Code

public function isDisabled() {
  return $this->node
    ->hasAttribute('disabled');
}