You are here

interface VotingApiReactionItemInterface in Voting API Reaction 8

Interface definition for reactions.

Hierarchy

Expanded class hierarchy of VotingApiReactionItemInterface

All classes that implement VotingApiReactionItemInterface

3 files declare their use of VotingApiReactionItemInterface
VotingApiReactionForm.php in src/Form/VotingApiReactionForm.php
VotingApiReactionManager.php in src/VotingApiReactionManager.php
VotingApiReactionWidget.php in src/Plugin/Field/FieldWidget/VotingApiReactionWidget.php

File

src/Plugin/Field/FieldType/VotingApiReactionItemInterface.php, line 8

Namespace

Drupal\votingapi_reaction\Plugin\Field\FieldType
View source
interface VotingApiReactionItemInterface {

  /**
   * Reactions for this entity are hidden.
   */
  const HIDDEN = 0;

  /**
   * Reactions for this entity are closed.
   */
  const CLOSED = 1;

  /**
   * Reactions for this entity are open.
   */
  const OPEN = 2;

  /**
   * Reactions for this entity will rollover based on Voting API settings.
   */
  const VOTINGAPI_ROLLOVER = -1;

  /**
   * Reactions for this entity will never rollover.
   */
  const NEVER_ROLLOVER = -2;

  /**
   * Methods by which sessions for anonymous users will be detected.
   */
  const BY_COOKIES = 1;
  const BY_IP = 2;

}

Members

Namesort descending Modifiers Type Description Overrides
VotingApiReactionItemInterface::BY_COOKIES constant Methods by which sessions for anonymous users will be detected.
VotingApiReactionItemInterface::BY_IP constant
VotingApiReactionItemInterface::CLOSED constant Reactions for this entity are closed.
VotingApiReactionItemInterface::HIDDEN constant Reactions for this entity are hidden.
VotingApiReactionItemInterface::NEVER_ROLLOVER constant Reactions for this entity will never rollover.
VotingApiReactionItemInterface::OPEN constant Reactions for this entity are open.
VotingApiReactionItemInterface::VOTINGAPI_ROLLOVER constant Reactions for this entity will rollover based on Voting API settings.