You are here

CommentTypeInterface.php in Zircon Profile 8.0

Same filename and directory in other branches
  1. 8 core/modules/comment/src/CommentTypeInterface.php

Namespace

Drupal\comment

File

core/modules/comment/src/CommentTypeInterface.php
View source
<?php

/**
 * @file
 * Contains \Drupal\comment\CommentTypeInterface.
 */
namespace Drupal\comment;

use Drupal\Core\Config\Entity\ConfigEntityInterface;

/**
 * Provides an interface defining a comment type entity.
 */
interface CommentTypeInterface extends ConfigEntityInterface {

  /**
   * Returns the comment type description.
   *
   * @return string
   *   The comment-type description.
   */
  public function getDescription();

  /**
   * Sets the description of the comment type.
   *
   * @param string $description
   *   The new description.
   *
   * @return $this
   */
  public function setDescription($description);

  /**
   * Gets the target entity type id for this comment type.
   *
   * @return string
   *   The target entity type id.
   */
  public function getTargetEntityTypeId();

}

Interfaces

Namesort descending Description
CommentTypeInterface Provides an interface defining a comment type entity.