Example #1
0
 /**
  * @param $defaultVisitor
  * @param $renderContext
  *
  * @return LegacyModuleAPI
  */
 public function getModuleAPI($defaultVisitor, $renderContext)
 {
     if (!is_object($this->moduleApi)) {
         $this->moduleApi = new LegacyModuleAPI($defaultVisitor, $this, $renderContext);
     }
     $this->moduleApi->setDefaultVisitor($defaultVisitor);
     return $this->moduleApi;
 }