ContentModerationState::getOwner

public ContentModerationState::getOwner()

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

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

Class

ContentModerationState
Defines the Content moderation state entity.

Namespace

Drupal\content_moderation\Entity

Code

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

Please login to continue.