public function Slider::getOwner in Image sliders 8
Returns the entity owner's user entity.
Return value
\Drupal\user\UserInterface The owner user entity.
Overrides EntityOwnerInterface::getOwner
File
- src/
Entity/ Slider.php, line 81
Class
- Slider
- Defines the SliderEntityExample entity.
Namespace
Drupal\image_slider\EntityCode
public function getOwner() {
return $this
->get('user_id')->entity;
}