/** * Check whether * * @return bool */ public function isDisplayed() { if (null === $this->_isDisplayed) { $output = $this->_shouldBeDisplayed(); if ($output) { $this->_syncFlag->setState(\Magento\Core\Model\File\Storage\Flag::STATE_NOTIFIED); $this->_syncFlag->save(); } $this->_isDisplayed = $output; } return $this->_isDisplayed; }
/** * Return synchronize process status flag * * @return \Magento\Core\Model\File\Storage\Flag */ public function getSyncFlag() { return $this->_fileFlag->loadSelf(); }