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

Breadcrumb

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

function Traverser::__construct

Same name in this branch
  1. 11.1.x vendor/masterminds/html5/src/HTML5/Serializer/Traverser.php \Masterminds\HTML5\Serializer\Traverser::__construct()

Class constructor. Available options are:

  • skipStartingNode: if true the starting node will be skipped
  • passParentNode: if true the parent node of each node will be passed as second argument when the functions are called. Note that the parent node is calculated during traversing, so for the starting node it will always be null.

Parameters

array $options Options array:

File

vendor/mck89/peast/lib/Peast/Traverser.php, line 66

Class

Traverser
Nodes traverser class

Namespace

Peast

Code

public function __construct($options = array()) {
    if (isset($options["passParentNode"])) {
        $this->passParentNode = (bool) $options["passParentNode"];
    }
    if (isset($options["skipStartingNode"])) {
        $this->skipStartingNode = (bool) $options["skipStartingNode"];
    }
}

API Navigation

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