public function CacheDecoratedResource::update in RESTful 7.2
Basic implementation for update.
Parameters
string $path: The resource path.
Return value
array An array of structured data for the thing that was updated.
Overrides ResourceDecoratorBase::update
File
- src/
Plugin/ resource/ Decorators/ CacheDecoratedResource.php, line 208 - Contains \Drupal\restful\Plugin\resource\Decorators\CacheDecoratedResource
Class
Namespace
Drupal\restful\Plugin\resource\DecoratorsCode
public function update($path) {
$this
->invalidateResourceCache($path);
// Update according to the decorated.
return $this->subject
->update($path);
}