getParameter('group'); if (!$group instanceof GroupInterface) { return NULL; } return $group; } /** * {@inheritdoc} */ public function handlesEntity(EntityInterface $entity): bool { return $entity instanceof GroupInterface; } }