src/Charcoal/Admin/AdminTemplate.php
protected function isObjTypeInSecondaryMenuItem($objType, $item)
    {
        if (isset($item['links'])) {
            foreach ($item['links'] as $obj => $i) {
                if ($obj === $objType) {
                    return true;
                }
            }
        }

        if (isset($item['groups'])) {
            foreach ($item['groups'] as $group) {
                if ($this->isObjTypeInSecondaryMenuItem($objType, $group)) {
                    return true;
                }
            }
        }

        return false;
    }
protected function isObjTypeInSecondaryMenuItem($objType, $item)
    {
        if (isset($item['links'])) {
            foreach ($item['links'] as $obj => $i) {
                if ($obj === $objType) {
                    return true;
                }
            }
        }

        if (isset($item['groups'])) {
            foreach ($item['groups'] as $group) {
                if ($this->isObjTypeInSecondaryMenuItem($objType, $group)) {
                    return true;
                }
            }
        }

        return false;
    }
protected function isObjTypeInSecondaryMenuItem ( $ objType , $ item ) { if ( isset ( $ item [ 'links' ] ) ) { foreach ( $ item [ 'links' ] as $ obj => $ i ) { if ( $ obj === $ objType ) { return true ; } } } if ( isset ( $ item [ 'groups' ] ) ) { foreach ( $ item [ 'groups' ] as $ group ) { if ( $ this -> isObjTypeInSecondaryMenuItem ( $ objType , $ group ) ) { return true ; } } } return false ; }
Check for the objType in the secondary menu items
returning true as soon as it its.

@param string      $objType The ObjType to search.
@param array|mixed $item    The secondary menu item to search in.
@return boolean
Check for the objType in the secondary menu items returning true as soon as it its .