Forked from
project / serialization_cache
1 commit behind, 1 commit ahead of the upstream repository.
-
Evgeny Yudkin authoredEvgeny Yudkin authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
serialization_cache.module 869 B
<?php
/**
* @file
* Contains serialization_cache.module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*
* @param $route_name
* @param RouteMatchInterface $route_match
* @return string
*/
function serialization_cache_help($route_name, RouteMatchInterface $route_match) {
$description = <<<DESC
Serialization cache module provides caching for Drupal entities in normalized form. (cache should be cleaned automatically on entity update actions and etc. as common entity cache)
To enable this module you should replace basic serializer service with the "AccessCachingSerializer" (see "README.txt" for an example).
To check caching you can set "serialization_cache_debug" state to "TRUE".
DESC;
switch ($route_name) {
case 'serialization_cache.edit':
return '<p>' . t($description) . '</p>';
}
return NULL;
}