public function Vote::setVotedEntityType in Voting API 8.3
Sets the type of entity that the vote was cast on.
Parameters
string $name: The entity type.
Return value
$this
Overrides VoteInterface::setVotedEntityType
File
- src/
Entity/ Vote.php, line 61
Class
- Vote
- Defines the Vote entity.
Namespace
Drupal\votingapi\EntityCode
public function setVotedEntityType($name) {
return $this
->set('entity_type', $name);
}