You are here

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\Entity

Code

public function setVotedEntityType($name) {
  return $this
    ->set('entity_type', $name);
}