src/components/AdminMenu.php
public function getApiDetail($api, $pool = null)
    {
        $items = $this->getItems();
        
        if ($pool) {
            $items = ArrayHelper::searchColumns($items, 'pool', $pool);
        }
        $items = array_values($items); // reset keys to fix isset error
        return ArrayHelper::searchColumn($items, 'permissionApiEndpoint', $api);
    }
public function getApiDetail($api, $pool = null)
    {
        $items = $this->getItems();
        
        if ($pool) {
            $items = ArrayHelper::searchColumns($items, 'pool', $pool);
        }
        $items = array_values($items); // reset keys to fix isset error
        return ArrayHelper::searchColumn($items, 'permissionApiEndpoint', $api);
    }
public function getApiDetail ( $ api , $ pool = null ) { $ items = $ this -> getItems ( ) ; if ( $ pool ) { $ items = ArrayHelper :: searchColumns ( $ items , 'pool' , $ pool ) ; } $ items = array_values ( $ items ) ; // reset keys to fix isset error return ArrayHelper :: searchColumn ( $ items , 'permissionApiEndpoint' , $ api ) ; }
Return all informations about a menu point based on the api endpoint name.

@param string $api The Api Endpoint
@return array|boolean
Return all informations about a menu point based on the api endpoint name .