private function generateKey(string
$active, string
$rootId, int
$depth, Request
$request, SalesChannelContext
$context, Criteria
$criteria): ?string
{ $parts =
[ $rootId,
$depth,
$this->generator->
getCriteriaHash($criteria),
$this->generator->
getSalesChannelContextHash($context,
[RuleAreas::CATEGORY_AREA
]),
];
$event =
new NavigationRouteCacheKeyEvent($parts,
$active,
$rootId,
$depth,
$request,
$context,
$criteria);
$this->dispatcher->
dispatch($event);
if (!
$event->
shouldCache()) { return null;
} return self::
buildName($active) . '-' .
md5(Json::
encode($event->
getParts()));
} /**
* @param array<string> $tags
*
* @return array<string>
*/