You are here

public function ServiceResource::getNoCache in Services 9.0.x

Same name and namespace in other branches
  1. 8.4 src/Entity/ServiceResource.php \Drupal\services\Entity\ServiceResource::getNoCache()

Get resource no caching option.

Return value

boolean

Overrides ServiceResourceInterface::getNoCache

File

src/Entity/ServiceResource.php, line 126

Class

ServiceResource
Defines service resource entity.

Namespace

Drupal\services\Entity

Code

public function getNoCache() {
  if (isset($this->no_cache)) {
    return $this->no_cache;
  }
  return $this
    ->getDefaultSettings()
    ->get('default_no_cache');
}