public function CacheDecoratedResource::hasSimpleInvalidation in RESTful 7.2
Checks if simple invalidation is enabled for this resource.
Return value
bool TRUE if simple invalidation is needed.
Overrides CacheDecoratedResourceInterface::hasSimpleInvalidation
File
- src/
Plugin/ resource/ Decorators/ CacheDecoratedResource.php, line 292 - Contains \Drupal\restful\Plugin\resource\Decorators\CacheDecoratedResource
Class
Namespace
Drupal\restful\Plugin\resource\DecoratorsCode
public function hasSimpleInvalidation() {
$data_provider = $this
->getDataProvider();
$options = $data_provider
->getOptions();
$cache_info = $options['renderCache'];
return !empty($cache_info['simpleInvalidate']);
}