Neos\Neos\Domain\Model\Site::getSiteResourcesPackageKey PHP Метод

getSiteResourcesPackageKey() публичный Метод

Returns the key of a package containing the static resources for this site.
public getSiteResourcesPackageKey ( ) : string
Результат string The package key
    public function getSiteResourcesPackageKey()
    {
        return $this->siteResourcesPackageKey;
    }

Usage Example

 /**
  * Export the given $site to the XMLWriter
  *
  * @param Site $site
  * @param string $nodeTypeFilter
  * @return void
  */
 protected function exportSite(Site $site, $nodeTypeFilter)
 {
     /** @var ContentContext $contentContext */
     $contentContext = $this->contextFactory->create(array('currentSite' => $site, 'invisibleContentShown' => true, 'inaccessibleContentShown' => true));
     $siteNode = $contentContext->getCurrentSiteNode();
     $this->xmlWriter->startElement('site');
     $this->xmlWriter->writeAttribute('name', $site->getName());
     $this->xmlWriter->writeAttribute('state', $site->getState());
     $this->xmlWriter->writeAttribute('siteResourcesPackageKey', $site->getSiteResourcesPackageKey());
     $this->xmlWriter->writeAttribute('siteNodeName', $siteNode->getName());
     $this->nodeExportService->export($siteNode->getPath(), $contentContext->getWorkspaceName(), $this->xmlWriter, false, false, $this->resourcesPath, $nodeTypeFilter);
     $this->xmlWriter->endElement();
 }
All Usage Examples Of Neos\Neos\Domain\Model\Site::getSiteResourcesPackageKey