Block/Adminhtml/Post/Edit/Tab/Products.php
protected function getSelectedProducts()
    {
        $products = $this->getProductsRelated();
        if (!is_array($products)) {
            $products = array_keys($this->getSelectedRelatedProducts());
        }

        return $products;
    }
protected function getSelectedProducts()
    {
        $products = $this->getProductsRelated();
        if (!is_array($products)) {
            $products = array_keys($this->getSelectedRelatedProducts());
        }

        return $products;
    }
protected function getSelectedProducts ( ) { $ products = $ this -> getProductsRelated ( ) ; if ( ! is_array ( $ products ) ) { $ products = array_keys ( $ this -> getSelectedRelatedProducts ( ) ) ; } return $ products ; }
Retrieve selected related products

@return array
Retrieve selected related products