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

Breadcrumb

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

function Traverser::traverse

Starts the traversing

Parameters

Syntax\Node\Node $node Starting node:

Return value

Syntax\Node\Node

File

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

Class

Traverser
Nodes traverser class

Namespace

Peast

Code

public function traverse(Syntax\Node\Node $node) {
    if ($this->skipStartingNode) {
        $this->traverseChildren($node);
    }
    else {
        $this->execFunctions($node);
    }
    return $node;
}

API Navigation

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