Loading consultation.module +4 −3 Original line number Diff line number Diff line Loading @@ -5,11 +5,12 @@ * Module file for consultation. */ use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\Display\EntityViewDisplayInterface; use Drupal\consultation\ConsultationNodeHelper; use Drupal\Core\Access\AccessResult; use Drupal\Core\Entity\Display\EntityViewDisplayInterface; use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Session\AccountInterface; use Drupal\field\FieldStorageConfigInterface; // The webform element (checkbox) that captures whether the submission should remain private. Loading Loading @@ -206,7 +207,7 @@ function consultation_preprocess_paragraph(&$variables) { /** * Implements hook_entity_access(). */ function consultation_entity_access(\Drupal\Core\Entity\EntityInterface $entity, $operation, \Drupal\Core\Session\AccountInterface $account) { function consultation_entity_access(EntityInterface $entity, $operation, AccountInterface $account) { if ($entity->getEntityTypeId() == 'webform_submission') { Loading tests/src/Functional/ConsultationNodeHelperTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ class ConsultationNodeHelperTest extends BrowserTestBase { * * @var string[] */ public static $modules = [ protected static $modules = [ 'node', 'consultation', 'field', Loading Loading
consultation.module +4 −3 Original line number Diff line number Diff line Loading @@ -5,11 +5,12 @@ * Module file for consultation. */ use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\Display\EntityViewDisplayInterface; use Drupal\consultation\ConsultationNodeHelper; use Drupal\Core\Access\AccessResult; use Drupal\Core\Entity\Display\EntityViewDisplayInterface; use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Session\AccountInterface; use Drupal\field\FieldStorageConfigInterface; // The webform element (checkbox) that captures whether the submission should remain private. Loading Loading @@ -206,7 +207,7 @@ function consultation_preprocess_paragraph(&$variables) { /** * Implements hook_entity_access(). */ function consultation_entity_access(\Drupal\Core\Entity\EntityInterface $entity, $operation, \Drupal\Core\Session\AccountInterface $account) { function consultation_entity_access(EntityInterface $entity, $operation, AccountInterface $account) { if ($entity->getEntityTypeId() == 'webform_submission') { Loading
tests/src/Functional/ConsultationNodeHelperTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ class ConsultationNodeHelperTest extends BrowserTestBase { * * @var string[] */ public static $modules = [ protected static $modules = [ 'node', 'consultation', 'field', Loading