public function TwitterWidget::getOwner in Twitter Profile Widget 8
Returns the entity owner's user entity.
Return value
\Drupal\user\UserInterface The owner user entity.
Overrides EntityOwnerInterface::getOwner
File
- src/
Entity/ TwitterWidget.php, line 104
Class
- TwitterWidget
- Defines the Twitter widget entity.
Namespace
Drupal\twitter_profile_widget\EntityCode
public function getOwner() {
return $this
->get('user_id')->entity;
}