/**
  * @param CacheMetaBag $cacheMetaBag
  *
  * @return array
  */
 public function getTags(CacheMetaBag $cacheMetaBag)
 {
     $tags = array();
     $userId = $cacheMetaBag->getParameter('leadersOf');
     $tags[] = $this->getEntityOfUserTag(CacheTag::LEADER, $userId);
     return $tags;
 }
 /**
  * @param CacheMetaBag $cacheMetaBag
  *
  * @return array
  */
 public function getTags(CacheMetaBag $cacheMetaBag)
 {
     $tags = array();
     $userId = $cacheMetaBag->getParameter('reviewedBy');
     $geonameSuffix = $this->getGeonameSuffix($cacheMetaBag);
     $tags[] = CacheTag::REVIEWED_BY . $userId . $geonameSuffix;
     return $tags;
 }
 /**
  * @param CacheMetaBag $cacheMetaBag
  *
  * @return string
  */
 protected function getGeonameSuffix(CacheMetaBag $cacheMetaBag)
 {
     $geonameId = $cacheMetaBag->getParameter('geoname');
     if ($geonameId) {
         return CacheTag::GEONAME . $geonameId;
     }
     return '';
 }