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

Breadcrumb

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

function FormFieldRegistry::has

Tests whether the form has the given field based on the fully qualified name.

File

vendor/symfony/dom-crawler/FormFieldRegistry.php, line 90

Class

FormFieldRegistry
This is an internal class that must not be used directly.

Namespace

Symfony\Component\DomCrawler

Code

public function has(string $name) : bool {
    try {
        $this->get($name);
        return true;
    } catch (\InvalidArgumentException) {
        return false;
    }
}

API Navigation

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