translationApplier->apply($result); return $result; } public function afterDelete(Category $subject, Category $result): Category { $this->translationRepository->clearEntityTranslations( (int)$subject->getId(), $subject instanceof Homepage ? CmsTranslationRepository::ENTITY_WIKI_HOMEPAGE : CmsTranslationRepository::ENTITY_WIKI_CATEGORY ); return $result; } }