src/Controller/Component/ProcessComponent.php
protected function _getIds(array $ids, $primaryKey = self::PRIMARY_KEY)
    {
        $return = [];
        foreach ($ids as $id => $value) {
            if (is_array($value) && is_int($id) && (int) $value[$primaryKey] === 1) {
                $return[$id] = $id;
            }
        }

        return $return;
    }
protected function _getIds(array $ids, $primaryKey = self::PRIMARY_KEY)
    {
        $return = [];
        foreach ($ids as $id => $value) {
            if (is_array($value) && is_int($id) && (int) $value[$primaryKey] === 1) {
                $return[$id] = $id;
            }
        }

        return $return;
    }
protected function _getIds ( array $ ids , $ primaryKey = self :: PRIMARY_KEY ) { $ return = [ ] ; foreach ( $ ids as $ id => $ value ) { if ( is_array ( $ value ) && is_int ( $ id ) && ( int ) $ value [ $ primaryKey ] === 1 ) { $ return [ $ id ] = $ id ; } } return $ return ; }
Get ids by request.

@param   array $ids
@param   string $primaryKey
@return  array
Get ids by request .