You are here

public function VoteResultFunctionBase::getLabel in Voting API 8.3

Retrieve the label for the voting result.

Return value

string The translated label

Overrides VoteResultFunctionInterface::getLabel

File

src/VoteResultFunctionBase.php, line 15

Class

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

Namespace

Drupal\votingapi

Code

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