public function onSharingManagerChange(): void
    {
        if (null !== ($filter = $this->getFilter())) {
            $filter->setParameter('sharing_manager_enabled', $this->sharingManager->isEnabled(), 'boolean');
        }
    }