Heratio Framework API Reference

MetadataTemplateProviderInterface
in

Interface for plugins that provide metadata template support.

Plugins implementing this interface can register their metadata template routing dynamically instead of being hardcoded in QubitMetadataRoute.

Example implementation in plugin configuration:

class ahgMuseumPluginConfiguration extends sfPluginConfiguration implements \AtomExtensions\Contracts\MetadataTemplateProviderInterface { public function getTemplateCode(): string { return 'museum'; }

public function getPluginName(): string
{
    return 'ahgMuseumPlugin';
}

public function getModuleName(): string
{
    return 'museum';
}

}

Table of Contents

Methods

getModuleName()  : string
Get the module name for this template.
getPluginName()  : string
Get the plugin name for routing.
getTemplateCode()  : string
Get the template code (e.g., 'museum', 'dam', 'isad').

Methods


        
On this page

Search results