You are here

protected function EntityRenderHandler::getRenderUser in Acquia Lift Connector 8.4

Get rendered user.

Return value

\Drupal\acquia_contenthub\Session\ContentHubUserSession|\Drupal\Core\Session\UserSession The rendered user.

1 call to EntityRenderHandler::getRenderUser()
EntityRenderHandler::onCreateCdf in modules/acquia_lift_publisher/src/EventSubscriber/Cdf/EntityRenderHandler.php
Actions on create CDF.

File

modules/acquia_lift_publisher/src/EventSubscriber/Cdf/EntityRenderHandler.php, line 289

Class

EntityRenderHandler
Class EntityRenderHandler.

Namespace

Drupal\acquia_lift_publisher\EventSubscriber\Cdf

Code

protected function getRenderUser() {
  if (!$this->renderUser) {
    $this->renderUser = new ContentHubUserSession($this->publisherSettings
      ->get('render_role'));
  }
  return $this->renderUser;
}