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

Breadcrumb

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

function Form::getName

Gets the form name.

If no name is defined on the form, an empty string is returned.

File

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

Class

Form
Form represents an HTML form.

Namespace

Symfony\Component\DomCrawler

Code

public function getName() : string {
    return $this->node
        ->getAttribute('name');
}
RSS feed
Powered by Drupal