You are here

public function VoteResult::getFunction in Voting API 8.3

Returns the name of the function to apply to the numbers.

Return value

string Name of the function to apply.

Overrides VoteResultInterface::getFunction

File

src/Entity/VoteResult.php, line 128

Class

VoteResult
Defines the VoteResult entity.

Namespace

Drupal\votingapi\Entity

Code

public function getFunction() {
  return $this
    ->get('function')->value;
}