addCatalogueMetadata example

foreach ($catalogue->getResources() as $resource) {
            $this->addResource($resource);
        }

        if ($catalogue instanceof MetadataAwareInterface) {
            $metadata = $catalogue->getMetadata('', '');
            $this->addMetadata($metadata);
        }

        if ($catalogue instanceof CatalogueMetadataAwareInterface) {
            $catalogueMetadata = $catalogue->getCatalogueMetadata('', '');
            $this->addCatalogueMetadata($catalogueMetadata);
        }
    }

    /** * @return void */
    public function addFallbackCatalogue(MessageCatalogueInterface $catalogue)
    {
        // detect circular references         $c = $catalogue;
        while ($c = $c->getFallbackCatalogue()) {
            
Home | Imprint | This part of the site doesn't use cookies.