diff --git a/core/includes/theme.inc b/core/includes/theme.inc index ce70915..dc911e4 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1356,9 +1356,9 @@ function template_preprocess_page(&$variables) { } } - $variables['base_path'] = base_path(); + $variables['base_path'] = base_path(); $variables['front_page'] = \Drupal::url(''); - $variables['language'] = $language_interface; + $variables['language'] = $language_interface; // An exception might be thrown. try { diff --git a/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php b/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php index 177ecc9..96c4b7b 100644 --- a/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php +++ b/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php @@ -788,10 +788,10 @@ public function testPost() { $has_canonical_url = $this->entity->hasLinkTemplate('canonical'); // Try with all of the following request bodies. - $unparseable_request_body = '!{>}<'; - $parseable_valid_request_body = $this->serializer->encode($this->getNormalizedPostEntity(), static::$format); - $parseable_valid_request_body_2 = $this->serializer->encode($this->getSecondNormalizedPostEntity(), static::$format); - $parseable_invalid_request_body = $this->serializer->encode($this->makeNormalizationInvalid($this->getNormalizedPostEntity(), 'label'), static::$format); + $unparseable_request_body = '!{>}<'; + $parseable_valid_request_body = $this->serializer->encode($this->getNormalizedPostEntity(), static::$format); + $parseable_valid_request_body_2 = $this->serializer->encode($this->getSecondNormalizedPostEntity(), static::$format); + $parseable_invalid_request_body = $this->serializer->encode($this->makeNormalizationInvalid($this->getNormalizedPostEntity(), 'label'), static::$format); $parseable_invalid_request_body_2 = $this->serializer->encode($this->getNormalizedPostEntity() + ['uuid' => [$this->randomMachineName(129)]], static::$format); $parseable_invalid_request_body_3 = $this->serializer->encode($this->getNormalizedPostEntity() + ['field_rest_test' => [['value' => $this->randomString()]]], static::$format);