diff --git a/core/lib/Drupal/Core/Entity/ConfigValidatableTrait.php b/core/lib/Drupal/Core/Entity/ConfigValidatableTrait.php index 79dffae..fc9db30 100644 --- a/core/lib/Drupal/Core/Entity/ConfigValidatableTrait.php +++ b/core/lib/Drupal/Core/Entity/ConfigValidatableTrait.php @@ -12,7 +12,7 @@ * * @var bool */ - protected $validationIsRequired = false; + protected $validationIsRequired = FALSE; /** * Implements validate for \Drupal\Core\Entity\ValidatableInterface. diff --git a/core/modules/rest/src/Plugin/rest/resource/EntityResource.php b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php index 2ec51a7..789b3a1 100644 --- a/core/modules/rest/src/Plugin/rest/resource/EntityResource.php +++ b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php @@ -6,7 +6,6 @@ use Drupal\Component\Plugin\PluginManagerInterface; use Drupal\Core\Cache\CacheableResponseInterface; use Drupal\Core\Config\Entity\ConfigEntityInterface; -use Drupal\Core\Config\Entity\ConfigEntityType; use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\Core\Entity\FieldableEntityInterface; use Drupal\Core\Config\ConfigFactoryInterface; diff --git a/core/modules/rest/src/Plugin/rest/resource/EntityResourceValidationTrait.php b/core/modules/rest/src/Plugin/rest/resource/EntityResourceValidationTrait.php index 6d90478..d3ee622 100644 --- a/core/modules/rest/src/Plugin/rest/resource/EntityResourceValidationTrait.php +++ b/core/modules/rest/src/Plugin/rest/resource/EntityResourceValidationTrait.php @@ -5,7 +5,6 @@ use Drupal\Component\Render\PlainTextOutput; use Drupal\Core\Entity\EntityConstraintViolationListInterface; use Drupal\Core\Entity\EntityInterface; -use Drupal\Core\Entity\FieldableEntityInterface; use Drupal\Core\Entity\ValidatableInterface; use Symfony\Component\HttpKernel\Exception\UnprocessableEntityHttpException; diff --git a/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php b/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php index 3617548..d552e36 100644 --- a/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php +++ b/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php @@ -5,7 +5,6 @@ use Drupal\Component\Utility\NestedArray; use Drupal\Core\Cache\Cache; use Drupal\Core\Cache\CacheableResponseInterface; -use Drupal\Core\Config\Entity\ConfigEntityInterface; use Drupal\Core\Entity\FieldableEntityInterface; use Drupal\Core\Entity\ValidatableInterface; use Drupal\Core\Url; @@ -1053,7 +1052,6 @@ public function testPatch() { } - $request_options[RequestOptions::BODY] = $parseable_invalid_request_body_2;