public function VoteResult::getVotedEntityType in Voting API 8.3
Returns the type of entity that the vote was cast on.
Return value
string The entity type.
Overrides VoteResultInterface::getVotedEntityType
File
- src/
Entity/ VoteResult.php, line 42
Class
- VoteResult
- Defines the VoteResult entity.
Namespace
Drupal\votingapi\EntityCode
public function getVotedEntityType() {
return $this
->get('entity_type')->value;
}