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

Breadcrumb

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

function Form::getRawUri

Overrides Link::getRawUri

File

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

Class

Form
Form represents an HTML form.

Namespace

Symfony\Component\DomCrawler

Code

protected function getRawUri() : string {
    // If the form was created from a button rather than the form node, check for HTML5 action overrides
    if ($this->button !== $this->node && $this->button
        ->getAttribute('formaction')) {
        return $this->button
            ->getAttribute('formaction');
    }
    return $this->node
        ->getAttribute('action');
}
RSS feed
Powered by Drupal