Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FormField.php

function FormField::isDisabled

Check if the current field is disabled.

2 calls to FormField::isDisabled()
ChoiceFormField::isDisabled in vendor/symfony/dom-crawler/Field/ChoiceFormField.php
Check if the current selected option is disabled.
ChoiceFormField::isDisabled in vendor/symfony/dom-crawler/Field/ChoiceFormField.php
Check if the current selected option is disabled.
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 93

Class

FormField
FormField is the abstract class for all form fields.

Namespace

Symfony\Component\DomCrawler\Field

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal