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

Breadcrumb

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

function Node::setLeadingComments

Sets leading comments array

Parameters

Comment[] $comments Comments array:

Return value

$this

1 method overrides Node::setLeadingComments()
Comment::setLeadingComments in vendor/mck89/peast/lib/Peast/Syntax/Node/Comment.php
Sets leading comments array

File

vendor/mck89/peast/lib/Peast/Syntax/Node/Node.php, line 84

Class

Node
Base class for all the nodes generated by Peast.

Namespace

Peast\Syntax\Node

Code

public function setLeadingComments($comments) {
    $this->assertArrayOf($comments, "Comment");
    $this->leadingComments = $comments;
    return $this;
}

API Navigation

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