public function ExportEntity::getOwnerId in Content Synchronizer 8
Same name and namespace in other branches
- 8.2 src/Entity/ExportEntity.php \Drupal\content_synchronizer\Entity\ExportEntity::getOwnerId()
- 3.x src/Entity/ExportEntity.php \Drupal\content_synchronizer\Entity\ExportEntity::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/ ExportEntity.php, line 123
Class
- ExportEntity
- Defines the Export entity entity.
Namespace
Drupal\content_synchronizer\EntityCode
public function getOwnerId() {
return $this
->get('user_id')->target_id;
}