public function ScheduledTransitionsLocalTask::getCacheTags in Scheduled Transitions 2.x
Same name and namespace in other branches
- 8 src/Plugin/Menu/LocalTask/ScheduledTransitionsLocalTask.php \Drupal\scheduled_transitions\Plugin\Menu\LocalTask\ScheduledTransitionsLocalTask::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 LocalTaskDefault::getCacheTags
File
- src/
Plugin/ Menu/ LocalTask/ ScheduledTransitionsLocalTask.php, line 121
Class
- ScheduledTransitionsLocalTask
- Provides a local task showing count of scheduled transitions for an entity.
Namespace
Drupal\scheduled_transitions\Plugin\Menu\LocalTaskCode
public function getCacheTags() : array {
$tags = parent::getCacheTags();
$entity = $this
->getEntityFromRouteMatch();
if ($entity) {
$tags[] = ScheduledTransitionsUtility::createScheduledTransitionsCacheTag($entity);
}
return $tags;
}