public function Dashboard::getCacheTags in Dashboards with Layout Builder 8
Same name and namespace in other branches
- 2.0.x src/Entity/Dashboard.php \Drupal\dashboards\Entity\Dashboard::getCacheTags()
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 EntityBase::getCacheTags
File
- src/
Entity/ Dashboard.php, line 148
Class
- Dashboard
- Dashboard.
Namespace
Drupal\dashboards\EntityCode
public function getCacheTags() {
return Cache::mergeTags(parent::getCacheTags(), [
'config:dashboards_list',
'user:' . \Drupal::currentUser()
->id(),
'dashboards:' . $this
->id(),
]);
}