CommentInterface.php

Contains \Drupal\comment\Plugin\Core\Entity\CommentInterface.

Namespace

Drupal\comment

File

drupal/core/modules/comment/lib/Drupal/comment/CommentInterface.php
View source
<?php

/**
 * @file
 * Contains \Drupal\comment\Plugin\Core\Entity\CommentInterface.
 */
namespace Drupal\comment;

use Drupal\Core\Entity\ContentEntityInterface;

/**
 * Provides an interface defining a comment entity.
 */
interface CommentInterface extends ContentEntityInterface {

  /**
   * Returns the permalink URL for this comment.
   *
   * @return array
   *   An array containing the 'path' and 'options' keys used to build the URI
   *   of the comment, and matching the signature of
   *   UrlGenerator::generateFromPath().
   */
  public function permalink();

}

Interfaces

Namesort descending Description
CommentInterface Provides an interface defining a comment entity.