src/Charcoal/Admin/Widget/SecondaryMenuWidget.php
public function isCurrentItem($linkIdent)
    {
        $context = array_filter([
            $this->currentItem(),
            $this->objType(),
            $this->adminRoute(),
        ]);

        $matches = array_intersect((array)$linkIdent, $context);

        return !!$matches;
    }
public function isCurrentItem($linkIdent)
    {
        $context = array_filter([
            $this->currentItem(),
            $this->objType(),
            $this->adminRoute(),
        ]);

        $matches = array_intersect((array)$linkIdent, $context);

        return !!$matches;
    }
public function isCurrentItem ( $ linkIdent ) { $ context = array_filter ( [ $ this -> currentItem ( ) , $ this -> objType ( ) , $ this -> adminRoute ( ) , ] ) ; $ matches = array_intersect ( ( array ) $ linkIdent , $ context ) ; return ! ! $ matches ; }
Computes the intersection of values to determine if the link is the current item.

@param  mixed $linkIdent The link's value(s) to check.
@return boolean
Computes the intersection of values to determine if the link is the current item .