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
getModuleName()
Get the module name for this template.
public
getModuleName() : string
Return values
stringgetPluginName()
Get the plugin name for routing.
public
getPluginName() : string
Return values
stringgetTemplateCode()
Get the template code (e.g., 'museum', 'dam', 'isad').
public
getTemplateCode() : string