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