public function VoteResult::setFunction in Voting API 8.3
Sets the function to apply to the numbers.
Parameters
string $function: The function name.
Return value
$this
Overrides VoteResultInterface::setFunction
File
- src/
Entity/ VoteResult.php, line 135
Class
- VoteResult
- Defines the VoteResult entity.
Namespace
Drupal\votingapi\EntityCode
public function setFunction($function) {
return $this
->set('function', $function);
}