Conditions | 7 |
Paths | 64 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | protected function buildCacheMetadata($definition) { |
||
15 | return [ |
||
16 | 'schema_cache_contexts' => isset($definition['schema_cache_contexts']) ? $definition['schema_cache_contexts'] : ['languages:language_interface'], |
||
17 | 'schema_cache_tags' => isset($definition['schema_cache_tags']) ? $definition['schema_cache_tags'] : [], |
||
18 | 'schema_cache_max_age' => isset($definition['schema_cache_max_age']) ? $definition['schema_cache_max_age'] : CacheBackendInterface::CACHE_PERMANENT, |
||
19 | 'response_cache_contexts' => isset($definition['response_cache_contexts']) ? $definition['response_cache_contexts'] : ['user.permissions'], |
||
20 | 'response_cache_tags' => isset($definition['response_cache_tags']) ? $definition['response_cache_tags'] : [], |
||
21 | 'response_cache_max_age' => isset($definition['response_cache_max_age']) ? $definition['response_cache_max_age'] : CacheBackendInterface::CACHE_PERMANENT, |
||
22 | ]; |
||
23 | } |
||
24 | } |
||
25 |