Metadata
extends AbstractHelper
in package
Metadata view helper
Tags
Table of Contents
- $config : Config
- Metadata configuration entries
- $metaHelper : HeadMeta
- Laminas meta helper, used to embed html tags in the generated page
- $pluginManager : PluginManager
- Plugin Manager for vocabularies
- __construct() : mixed
- Constructor
- generateMetatags() : void
- Generate all metatags for RecordDriver and add to page
- getVocabularies() : array<string|int, mixed>
- Get all active vocabularies for the current record.
Properties
$config
Metadata configuration entries
protected
Config
$config
$metaHelper
Laminas meta helper, used to embed html tags in the generated page
protected
HeadMeta
$metaHelper
$pluginManager
Plugin Manager for vocabularies
protected
PluginManager
$pluginManager
Methods
__construct()
Constructor
public
__construct(PluginManager $pm, Config $config, HeadMeta $metaHelper) : mixed
Parameters
- $pm : PluginManager
-
Plugin manager
- $config : Config
-
Configuration
- $metaHelper : HeadMeta
-
Head meta helper
Return values
mixed —generateMetatags()
Generate all metatags for RecordDriver and add to page
public
generateMetatags(AbstractBase $driver) : void
Decide which Plugins to load for the given RecordDriver dependent on configuration. (only by class name, namespace will not be considered)
Parameters
- $driver : AbstractBase
-
Record driver
Return values
void —getVocabularies()
Get all active vocabularies for the current record.
protected
getVocabularies(AbstractBase $driver) : array<string|int, mixed>
Parameters
- $driver : AbstractBase
-
Record driver