public function Conditions::getOwnerId in Legal 8
Same name and namespace in other branches
- 2.0.x src/Entity/Conditions.php \Drupal\legal\Entity\Conditions::getOwnerId()
Returns the entity owner's user ID.
Return value
int|null The owner user ID, or NULL in case the user ID field has not been set on the entity.
Overrides EntityOwnerInterface::getOwnerId
File
- src/
Entity/ Conditions.php, line 64
Class
- Conditions
- Defines the Legal Terms & Conditions entity.
Namespace
Drupal\legal\EntityCode
public function getOwnerId() {
return $this
->get('user_id')->target_id;
}