private function WebformContentCreatorEntity::getProfileName in Webform Content Creator 3.x
Same name and namespace in other branches
- 8 src/Entity/WebformContentCreatorEntity.php \Drupal\webform_content_creator\Entity\WebformContentCreatorEntity::getProfileName()
- 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 277
Class
- WebformContentCreatorEntity
- Defines the Webform Content creator entity.
Namespace
Drupal\webform_content_creator\EntityCode
private function getProfileName() {
$encryption_profile = '';
$use_encrypt = $this
->get(WebformContentCreatorInterface::USE_ENCRYPT);
if ($use_encrypt) {
$encryption_profile = \Drupal::service('entity_type.manager')
->getStorage(WebformContentCreatorInterface::ENCRYPTION_PROFILE)
->load($this
->getEncryptionProfile());
}
return $encryption_profile;
}