_checkoutSession = $checkoutSession; } /** * Dispatch shortcuts container event * * @return $this */ protected function _beforeToHtml() { $this->_eventManager->dispatch( 'shortcut_buttons_container', [ 'container' => $this, 'is_catalog_product' => $this->_isCatalogProduct, 'or_position' => $this->_orPosition, 'checkout_session' => $this->_checkoutSession, 'is_shopping_cart' => true ] ); return $this; } }