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

Breadcrumb

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

function NodeElement::getAttribute

Returns specified attribute value.

Parameters

string $name:

Return value

string|null

1 call to NodeElement::getAttribute()
NodeElement::hasClass in vendor/behat/mink/src/Element/NodeElement.php
Checks whether an element has a named CSS class.

File

vendor/behat/mink/src/Element/NodeElement.php, line 140

Class

NodeElement
Page element node.

Namespace

Behat\Mink\Element

Code

public function getAttribute(string $name) {
    return $this->getDriver()
        ->getAttribute($this->getXpath(), $name);
}

API Navigation

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