You are here

private function PathContext::setIdentity in Acquia Lift Connector 8

Set Identity.

Parameters

string $identity: Identity.

string $identityType: Identity type.

2 calls to PathContext::setIdentity()
PathContext::setIdentityByRequest in src/Service/Context/PathContext.php
Set Identity by request stack's query parameters.
PathContext::setIdentityByUser in src/Service/Context/PathContext.php
Set Identity by User.

File

src/Service/Context/PathContext.php, line 167
Contains \Drupal\acquia_lift\Service\Context\PathContext.

Class

PathContext

Namespace

Drupal\acquia_lift\Service\Context

Code

private function setIdentity($identity, $identityType) {

  // Sanitize string and output.
  $this->identity['identity'] = Html::escape($identity);
  $this->identity['identityType'] = Html::escape($identityType);
}