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

Breadcrumb

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

function DOMTreeBuilder::isParent

Returns true if the immediate parent element is of the given tagname.

Parameters

string $tagName:

Return value

bool

File

vendor/masterminds/html5/src/HTML5/Parser/DOMTreeBuilder.php, line 711

Class

DOMTreeBuilder
Create an HTML5 DOM tree from events.

Namespace

Masterminds\HTML5\Parser

Code

protected function isParent($tagName) {
    return $this->current->tagName === $tagName;
}

API Navigation

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