Skip to main content
Drupal API
Menu
User account menu
Log in
Breadcrumb
Drupal Core 11.1.x
Comment.php
function Comment::getText
Same name in this branch
11.1.x vendor/nikic/php-parser/lib/PhpParser/Comment.php
\PhpParser\Comment::getText()
Returns the comment text
Return value
string
1 call to
Comment::getText()
Comment::getRawText
in vendor/
mck89/
peast/
lib/
Peast/
Syntax/
Node/
Comment.php
Returns the comment raw text
File
vendor/
mck89/
peast/
lib/
Peast/
Syntax/
Node/
Comment.php
, line 97
Class
Comment
A node that represents a comment.
Namespace
Peast\Syntax\Node
Code
public
function
getText
() {
return
$this
->
text
; }
RSS feed