/**
* @return array
*/
public function getTagsFunction()
{
return $this->memoizeCache->memoize(function () {
$tags = $this->tagManager->findAll();
$context = SerializationContext::create();
$context->setSerializeNull(true);
$context->setGroups(['partialTag']);
return $this->serializer->serialize($tags, 'array', $context);
});
}