public function RestMenuItemsCachableDepenency::getCacheTags in Rest menu items 8
The cache tags associated with this object.
When this object is modified, these cache tags will be invalidated.
Return value
string[] A set of cache tags.
Overrides CacheableDependencyInterface::getCacheTags
File
- src/
Plugin/ rest/ resource/ RestMenuItemsCachableDepenency.php, line 53
Class
Namespace
Drupal\rest_menu_items\Plugin\rest\resourceCode
public function getCacheTags() {
$tags = [];
$tags[] = 'config:system.menu.' . $this->menuName;
return $tags;
}