You are here

VoteTypeInterface.php in Voting API 8.3

Namespace

Drupal\votingapi

File

src/VoteTypeInterface.php
View source
<?php

namespace Drupal\votingapi;

use Drupal\Core\Config\Entity\ConfigEntityInterface;

/**
 * Provides an interface defining a vote type entity.
 */
interface VoteTypeInterface extends ConfigEntityInterface {

  /**
   * Returns the description.
   *
   * @return string
   *   The description of this vote type.
   */
  public function getDescription();

  /**
   * Returns the type of vote value. (e.g. points, percentage, etc.)
   *
   * @return string
   *   The type of vote value.
   */
  public function getValueType();

}

Interfaces

Namesort descending Description
VoteTypeInterface Provides an interface defining a vote type entity.