コード例 #1
0
 /**
  * @param boolean $force
  * @return ContentContext
  */
 protected function getContentContext($force = false)
 {
     if ($force) {
         $currentContext = $this->contentContextContainer->getContentContext();
         return $this->contentContextFactory->create(['invisibleContentShown' => true, 'inaccessibleContentShown' => true, 'currentDomain' => $currentContext->getCurrentDomain(), 'currentSite' => $currentContext->getCurrentSite()]);
     } else {
         return $this->contentContextContainer->getContentContext();
     }
 }
コード例 #2
0
 /**
  * @Flow\AfterReturning("method(TYPO3\Neos\Domain\Service\ContentContext->__construct())")
  * @param \TYPO3\Flow\Aop\JoinPointInterface $joinPoint The current join point
  * @return void
  */
 public function retrieveContentContext(JoinPointInterface $joinPoint)
 {
     if ($this->contentContextContainer->isInitialized()) {
         $this->contentContextContainer->initializeContentContext($joinPoint->getProxy());
     }
 }