You are here

private function WebformContentCreatorEntity::getProfileName in Webform Content Creator 8

Same name and namespace in other branches
  1. 3.x src/Entity/WebformContentCreatorEntity.php \Drupal\webform_content_creator\Entity\WebformContentCreatorEntity::getProfileName()
  2. 2.x src/Entity/WebformContentCreatorEntity.php \Drupal\webform_content_creator\Entity\WebformContentCreatorEntity::getProfileName()

Get encryption profile name.

Return value

string Encryption profile name.

2 calls to WebformContentCreatorEntity::getProfileName()
WebformContentCreatorEntity::createNode in src/Entity/WebformContentCreatorEntity.php
Create node from webform submission.
WebformContentCreatorEntity::updateNode in src/Entity/WebformContentCreatorEntity.php
Update node from webform submission.

File

src/Entity/WebformContentCreatorEntity.php, line 278

Class

WebformContentCreatorEntity
Defines the Webform Content creator entity.

Namespace

Drupal\webform_content_creator\Entity

Code

private function getProfileName() {
  $encryptionProfile = '';
  $useEncrypt = $this
    ->get(WebformContentCreatorInterface::USE_ENCRYPT);
  if ($useEncrypt) {
    $encryptionProfile = \Drupal::service('entity.manager')
      ->getStorage(WebformContentCreatorInterface::ENCRYPTION_PROFILE)
      ->load($this
      ->getEncryptionProfile());
  }
  return $encryptionProfile;
}