Commit 1231d6d3 authored by Project Update Bot's avatar Project Update Bot Committed by Kristen Pol
Browse files

Issue #3305261 by Project Update Bot, stooit, Kristen Pol: Automated Drupal 10 compatibility fixes

parent 3b7b760b
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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.
@@ -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') {

+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ class ConsultationNodeHelperTest extends BrowserTestBase {
   *
   * @var string[]
   */
  public static $modules = [
  protected static $modules = [
    'node',
    'consultation',
    'field',