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

Breadcrumb

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

function Form::has

Returns true if the named field exists.

2 calls to Form::has()
Form::addField in vendor/symfony/dom-crawler/Form.php
Form::offsetExists in vendor/symfony/dom-crawler/Form.php
Returns true if the named field exists.

File

vendor/symfony/dom-crawler/Form.php, line 242

Class

Form
Form represents an HTML form.

Namespace

Symfony\Component\DomCrawler

Code

public function has(string $name) : bool {
    return $this->fields
        ->has($name);
}
RSS feed
Powered by Drupal