Loading README.md +0 −3 Original line number Diff line number Diff line Loading @@ -232,9 +232,6 @@ parameters: - "#^Unsafe usage of new static#" # Ignore common errors for now. - "#Drupal calls should be avoided in classes, use dependency injection instead#" # This check was ignored on purpose until the issues with it, which started in version 1.1.15, are solved. # @see https://www.drupal.org/node/3280328 - "#^Missing explicit access check on entity query.#" drupal: entityMapping: domain: Loading domain/src/Entity/Domain.php +1 −1 Original line number Diff line number Diff line Loading @@ -159,7 +159,7 @@ class Domain extends ConfigEntityBase implements DomainInterface { parent::preCreate($storage_controller, $values); $domain_storage = \Drupal::entityTypeManager()->getStorage('domain'); $default = $domain_storage->loadDefaultId(); $count = $storage_controller->getQuery()->count()->execute(); $count = $storage_controller->getQuery()->accessCheck(FALSE)->count()->execute(); $values += [ 'scheme' => empty($GLOBALS['is_https']) ? 'http' : 'https', 'status' => 1, Loading domain/src/Form/DomainForm.php +1 −1 Original line number Diff line number Diff line Loading @@ -84,7 +84,7 @@ class DomainForm extends EntityForm { $domain = $this->entity; // Create defaults if this is the first domain. $count_existing = $this->domainStorage->getQuery()->count()->execute(); $count_existing = $this->domainStorage->getQuery()->accessCheck(FALSE)->count()->execute(); if (!$count_existing) { $domain->addProperty('hostname', $this->domainStorage->createHostname()); $domain->addProperty('name', $this->config('system.site')->get('name')); Loading Loading
README.md +0 −3 Original line number Diff line number Diff line Loading @@ -232,9 +232,6 @@ parameters: - "#^Unsafe usage of new static#" # Ignore common errors for now. - "#Drupal calls should be avoided in classes, use dependency injection instead#" # This check was ignored on purpose until the issues with it, which started in version 1.1.15, are solved. # @see https://www.drupal.org/node/3280328 - "#^Missing explicit access check on entity query.#" drupal: entityMapping: domain: Loading
domain/src/Entity/Domain.php +1 −1 Original line number Diff line number Diff line Loading @@ -159,7 +159,7 @@ class Domain extends ConfigEntityBase implements DomainInterface { parent::preCreate($storage_controller, $values); $domain_storage = \Drupal::entityTypeManager()->getStorage('domain'); $default = $domain_storage->loadDefaultId(); $count = $storage_controller->getQuery()->count()->execute(); $count = $storage_controller->getQuery()->accessCheck(FALSE)->count()->execute(); $values += [ 'scheme' => empty($GLOBALS['is_https']) ? 'http' : 'https', 'status' => 1, Loading
domain/src/Form/DomainForm.php +1 −1 Original line number Diff line number Diff line Loading @@ -84,7 +84,7 @@ class DomainForm extends EntityForm { $domain = $this->entity; // Create defaults if this is the first domain. $count_existing = $this->domainStorage->getQuery()->count()->execute(); $count_existing = $this->domainStorage->getQuery()->accessCheck(FALSE)->count()->execute(); if (!$count_existing) { $domain->addProperty('hostname', $this->domainStorage->createHostname()); $domain->addProperty('name', $this->config('system.site')->get('name')); Loading