From ef053bae2926f2c3471f55040c7b43da6ca31df4 Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Tue, 17 Dec 2024 11:53:58 -0500 Subject: [PATCH] Convert to use NavList::PRESENT_LINK constant --- src/Controller/ReferralSourceController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Controller/ReferralSourceController.php b/src/Controller/ReferralSourceController.php index 96e0fe0..fffa199 100644 --- a/src/Controller/ReferralSourceController.php +++ b/src/Controller/ReferralSourceController.php @@ -21,13 +21,13 @@ class ReferralSourceController extends AbstractController private array $navList = [] ) { $this->navList = NavList::LIST; + $this->navList['referral_sources'] = NavList::PRESENT_LINK; } #[Route('/list-referral-sources', name: 'app_referral_source')] public function listReferralSources(#[CurrentUser()] User $user): Response { $this->denyAccessUnlessGranted('ROLE_ADMIN'); - $this->navList['referral_sources'] = 'nav-link text-white active bg-gradient-dark'; $sources = $this->entityManager->getRepository(ReferralSource::class)->retrieveOrderedList(); @@ -50,7 +50,6 @@ class ReferralSourceController extends AbstractController public function addSource(Request $request, #[CurrentUser()] User $user): Response { $this->denyAccessUnlessGranted('ROLE_ADMIN'); - $this->navList['referral_sources'] = 'nav-link text-white active bg-gradient-dark'; $rs = new ReferralSource(); $form = $this->createForm(ReferralSourceFormType::class, $rs); @@ -88,7 +87,6 @@ class ReferralSourceController extends AbstractController public function editSource(Request $request, #[CurrentUser()] User $user, string $id): Response { $this->denyAccessUnlessGranted('ROLE_ADMIN'); - $this->navList['referral_sources'] = 'nav-link text-white active bg-gradient-dark'; $rs = $this->entityManager->getRepository(ReferralSource::class)->find($id);