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

Breadcrumb

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

function Node::setDocComment

Sets the doc comment of the node.

This will either replace an existing doc comment or add it to the comments array.

Parameters

Comment\Doc $docComment Doc comment to set:

1 method overrides Node::setDocComment()
NodeAbstract::setDocComment in vendor/nikic/php-parser/lib/PhpParser/NodeAbstract.php
Sets the doc comment of the node.

File

vendor/nikic/php-parser/lib/PhpParser/Node.php, line 114

Class

Node

Namespace

PhpParser

Code

public function setDocComment(Comment\Doc $docComment) : void;
RSS feed
Powered by Drupal