Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yeniatencio committed May 9, 2024
1 parent dc74984 commit ca7b2d0
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions src/EventSubscriber/TideSiteResourceObjectNormalizationCacher.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,26 +44,26 @@ protected function set(ResourceObject $object, array $normalization_parts) {
}

/**
* Generates a lookup render array for a normalization.
*
* @param \Drupal\jsonapi\JsonApiResource\ResourceObject $object
* The resource object for which to generate a cache item.
*
* @return array
* A render array for use with the RenderCache service.
*
* @see \Drupal\dynamic_page_cache\EventSubscriber\DynamicPageCacheSubscriber::$dynamicPageCacheRedirectRenderArray
*/
* Generates a lookup render array for a normalization.
*
* @param \Drupal\jsonapi\JsonApiResource\ResourceObject $object
* The resource object for which to generate a cache item.
*
* @return array
* A render array for use with the RenderCache service.
*
* @see \Drupal\dynamic_page_cache\EventSubscriber\DynamicPageCacheSubscriber::$dynamicPageCacheRedirectRenderArray
*/
protected static function generateLookupRenderArray(ResourceObject $object) {
return [
'#cache' => [
'keys' => [
$object->getResourceType()
->getTypeName(),
$object->getId(),
],
'bin' => 'jsonapi_normalizations',
],
'keys' => [
$object->getResourceType()
->getTypeName(),
$object->getId(),
],
'bin' => 'jsonapi_normalizations',
],
];
}

Expand Down

0 comments on commit ca7b2d0

Please sign in to comment.