You are here

Zebra.php in Voting API 8.3

File

tests/modules/votingapi_test/src/Plugin/VoteResultFunction/Zebra.php
View source
<?php

namespace Drupal\votingapi_test\Plugin\VoteResultFunction;

use Drupal\votingapi\VoteResultFunctionBase;

/**
 * A test plugin for the Voting API module.
 *
 * @VoteResultFunction(
 *   id = "zebra",
 *   label = @Translation("Zebra"),
 *   description = @Translation("A vote test plugin.")
 * )
 */
class Zebra extends VoteResultFunctionBase {

  /**
   * {@inheritdoc}
   */
  public function calculateResult($votes) {
    return 10101;
  }

}

Classes

Namesort descending Description
Zebra A test plugin for the Voting API module.