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

Breadcrumb

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

function Comment::setLeadingComments

Sets leading comments array

Parameters

Comment[] $comments Comments array:

Return value

$this

Overrides Node::setLeadingComments

File

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

Class

Comment
A node that represents a comment.

Namespace

Peast\Syntax\Node

Code

public function setLeadingComments($comments) {
    
    //Comments cannot be attached to other comments
    return $this;
}

API Navigation

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