protected function JobItem::invalidateTagsOnSave

File

src/Entity/JobItem.php, line 1114

Class

JobItem
Entity class for the tmgmt_job_item entity.

Namespace

Drupal\tmgmt\Entity

Code

protected function invalidateTagsOnSave($update) {
  parent::invalidateTagsOnSave($update);
  if ($this
    ->getJob()) {
    $tags = $this
      ->getJob()
      ->getEntityType()
      ->getListCacheTags();
    if ($update) {
      $tags = Cache::mergeTags($tags, $this
        ->getJob()
        ->getCacheTagsToInvalidate());
    }
    Cache::invalidateTags($tags);
  }
}