How do I get a list of all configurable products, including those that are out-of-stock?

I’m trying to get a list all of the configurable products that are children of a simple product, but Magento is only returning the configurable products that are not out-of-stock. Here’s the code that I’m using: private $linkManagement; public function __construct( \Magento\ConfigurableProduct\Api\LinkManagementInterface $linkManagement ) { $this->linkManagement = $linkManagement; } public function getConfigurableProducts($sku) { $configurableProducts =…

Update Quote Item Gift Message

How can I update the quote item custom gift message? I’m thinking of adding that function inside the Module_Checkout/Model/Cart.php inside the function updateItems. So if I take a look at this file the content is public function updateItems($data) { $infoDataObject = new \Magento\Framework\DataObject($data); $this->_eventManager->dispatch( ‘checkout_cart_update_items_before’, [‘cart’ => $this, ‘info’ => $infoDataObject] ); $qtyRecalculatedFlag = false;…