protected function addLeft(\Magento\Framework\View\Element\AbstractBlock $block) { if ($this->getRequest()->isGet() && !$this->getRequest()->isPost() && !$this->getRequest()->isXmlHttpRequest()) { if ($this->isContentLocked()) { return $this; } } return parent::addLeft($block); }