You are here

private function WebformContentCreatorEntity::getProfileName in Webform Content Creator 2.x

Same name and namespace in other branches
  1. 8 src/Entity/WebformContentCreatorEntity.php \Drupal\webform_content_creator\Entity\WebformContentCreatorEntity::getProfileName()
  2. 3.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::createContent in src/Entity/WebformContentCreatorEntity.php
Create content entity from webform submission.
WebformContentCreatorEntity::updateContent in src/Entity/WebformContentCreatorEntity.php
Update content from webform submission.

File

src/Entity/WebformContentCreatorEntity.php, line 320

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_type.manager')
      ->getStorage(WebformContentCreatorInterface::ENCRYPTION_PROFILE)
      ->load($this
      ->getEncryptionProfile());
  }
  return $encryptionProfile;
}