Skip to content
Snippets Groups Projects

3425240: Drupal 11 changes fix

13 files
+ 50
22
Compare changes
  • Side-by-side
  • Inline
Files
13
@@ -3,6 +3,7 @@
namespace Drupal\jsonapi_defaults\Controller;
use Drupal\Component\Serialization\Json;
use Drupal\Core\Utility\Error;
use Drupal\jsonapi\Controller\EntityResource as JsonApiEntityResourse;
use Drupal\jsonapi\Query\OffsetPage;
use Drupal\jsonapi\Query\Sort;
@@ -30,7 +31,7 @@ class EntityResource extends JsonApiEntityResourse {
$resource_type = static::correctResourceTypeOnRelated($related_field, $resource_type);
}
catch (\LengthException $e) {
watchdog_exception('jsonapi_defaults', $e);
Error::logException($this->logger, $e);
$resource_type = NULL;
}
@@ -110,7 +111,7 @@ class EntityResource extends JsonApiEntityResourse {
$resource_type = static::correctResourceTypeOnRelated($request->get('related'), $resource_type);
}
catch (\LengthException $e) {
watchdog_exception('jsonapi_defaults', $e);
Error::logException($this->logger, $e);
return parent::getIncludes($request, $data);
}
if (!$resource_type instanceof ConfigurableResourceType) {
Loading