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

Breadcrumb

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

function Matches::addMatch

Adds a new match

Parameters

Node $node:

Node|null $parent:

1 call to Matches::addMatch()
Matches::merge in vendor/mck89/peast/lib/Peast/Selector/Matches.php
Merges the current object with the other given Matches objects

File

vendor/mck89/peast/lib/Peast/Selector/Matches.php, line 44

Class

Matches
Selector matches class

Namespace

Peast\Selector

Code

public function addMatch(Node $node, $parent = null) {
    $this->matches[] = array(
        $node,
        $parent,
    );
}

API Navigation

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