Unverified Commit f44dff6d authored by Manuel Garcia's avatar Manuel Garcia Committed by vijaycs85

Issue #3037613 by Manuel Garcia: Call to a member function setStorageClass() on null

parent 99669df2
......@@ -42,6 +42,8 @@ function webform_encrypt_form_webform_ui_element_form_alter(&$form, FormStateInt
*/
function webform_encrypt_entity_type_alter(array &$entity_types) {
/* @var $entity_types \Drupal\Core\Entity\EntityTypeInterface[] */
$entity_types['webform_submission']->setStorageClass('Drupal\webform_encrypt\WebformEncryptSubmissionStorage');
$entity_types['webform_submission']->setAccessClass('Drupal\webform_encrypt\WebformEncryptSubmissionAccessControlHandler');
if (isset($entity_types['webform_submission'])) {
$entity_types['webform_submission']->setStorageClass('Drupal\webform_encrypt\WebformEncryptSubmissionStorage');
$entity_types['webform_submission']->setAccessClass('Drupal\webform_encrypt\WebformEncryptSubmissionAccessControlHandler');
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment