ContentModerationState::getOwnerId

public ContentModerationState::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

core/modules/content_moderation/src/Entity/ContentModerationState.php, line 102

Class

ContentModerationState
Defines the Content moderation state entity.

Namespace

Drupal\content_moderation\Entity

Code

public function getOwnerId() {
  return $this->getEntityKey('uid');
}
doc_Drupal
2016-10-29 08:58:02
Comments
Leave a Comment

Please login to continue.