You are here

public function VoteResultFunctionBase::getDescription in Voting API 8.3

Retrieve the description for the voting result.

Return value

string The translated description

Overrides VoteResultFunctionInterface::getDescription

File

src/VoteResultFunctionBase.php, line 22

Class

VoteResultFunctionBase
Base class for plugins which provide a function to compute the vote result.

Namespace

Drupal\votingapi

Code

public function getDescription() {
  return $this
    ->t($this->pluginDefinition['description']);
}