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

Breadcrumb

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

class Comment

Same name in this branch
  1. 11.1.x vendor/egulias/email-validator/src/Parser/Comment.php \Egulias\EmailValidator\Parser\Comment
  2. 11.1.x vendor/egulias/email-validator/src/Warning/Comment.php \Egulias\EmailValidator\Warning\Comment
  3. 11.1.x vendor/nikic/php-parser/lib/PhpParser/Comment.php \PhpParser\Comment
  4. 11.1.x vendor/squizlabs/php_codesniffer/src/Tokenizers/Comment.php \PHP_CodeSniffer\Tokenizers\Comment
  5. 11.1.x vendor/mck89/peast/lib/Peast/Syntax/Node/Comment.php \Peast\Syntax\Node\Comment
  6. 11.1.x core/modules/comment/src/Plugin/migrate/source/d6/Comment.php \Drupal\comment\Plugin\migrate\source\d6\Comment
  7. 11.1.x core/modules/comment/src/Plugin/migrate/source/d7/Comment.php \Drupal\comment\Plugin\migrate\source\d7\Comment
  8. 11.1.x core/modules/comment/src/Plugin/views/wizard/Comment.php \Drupal\comment\Plugin\views\wizard\Comment
  9. 11.1.x core/modules/comment/src/Entity/Comment.php \Drupal\comment\Entity\Comment

@internal

Hierarchy

  • class \SlevomatCodingStandard\Helpers\Comment

Expanded class hierarchy of Comment

115 string references to 'Comment'
AuthorNameFormatter::isApplicable in core/modules/comment/src/Plugin/Field/FieldFormatter/AuthorNameFormatter.php
Returns if the formatter can be used for the provided field.
comment.info.yml in core/modules/comment/comment.info.yml
core/modules/comment/comment.info.yml
comment.migrate_drupal.yml in core/modules/comment/migrations/state/comment.migrate_drupal.yml
core/modules/comment/migrations/state/comment.migrate_drupal.yml
comment.routing.yml in core/modules/comment/comment.routing.yml
core/modules/comment/comment.routing.yml
comment.type.comment.yml in core/profiles/standard/config/install/comment.type.comment.yml
core/profiles/standard/config/install/comment.type.comment.yml

... See full list

File

vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/Comment.php, line 8

Namespace

SlevomatCodingStandard\Helpers
View source
class Comment {
    
    /** @var int */
    private $pointer;
    
    /** @var string */
    private $content;
    public function __construct(int $pointer, string $content) {
        $this->pointer = $pointer;
        $this->content = $content;
    }
    public function getPointer() : int {
        return $this->pointer;
    }
    public function getContent() : string {
        return $this->content;
    }

}

Members

Title Sort descending Modifiers Object type Summary
Comment::$content private property @var string
Comment::$pointer private property @var int
Comment::getContent public function
Comment::getPointer public function
Comment::__construct public function
RSS feed
Powered by Drupal