code quality improvements + add boolean in a ctive link helper to check if url is active without displaying link
This commit is contained in:
@@ -108,7 +108,7 @@ class ActiveLinkHelperTest extends TestCase {
|
||||
// matches specific controller action
|
||||
$specificActionResult = $helper->link('goto', ['prefix' => 'Admin', 'controller' => 'Users', 'action' => 'index'], [
|
||||
'target' => ['controller' => 'Events', 'action' => 'index'],
|
||||
'current' => ['prefix' => 'Admin', 'controller' => 'Users', 'action' => 'index'],
|
||||
'current' => ['prefix' => 'Admin', 'controller' => 'Users', 'action' => 'index'],
|
||||
'activeClass' => 'awesome-active-class',
|
||||
'class' => 'link-class',
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user