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

Breadcrumb

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

function FormField::__construct

Parameters

\DOMElement $node The node associated with this field:

File

vendor/symfony/dom-crawler/Field/FormField.php, line 30

Class

FormField
FormField is the abstract class for all form fields.

Namespace

Symfony\Component\DomCrawler\Field

Code

public function __construct(\DOMElement $node) {
    $this->name = $node->getAttribute('name');
    $this->xpath = new \DOMXPath($node->ownerDocument);
    $this->initialize();
}

API Navigation

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