You are here

public function Poll::getOwner in Poll 8

File

src/Entity/Poll.php, line 147

Class

Poll
Defines the poll entity class.

Namespace

Drupal\poll\Entity

Code

public function getOwner() {
  return $this
    ->get('uid')->entity;
}