You are here

public function MetadataAwareInterface::getMetadata in Plug 7

Gets metadata for the given domain and key.

Passing an empty domain will return an array with all metadata indexed by domain and then by key. Passing an empty key will return an array with all metadata for the given domain.

Parameters

string $key The key:

string $domain The domain name:

Return value

mixed The value that was set or an array with the domains/keys or null

1 method overrides MetadataAwareInterface::getMetadata()
MessageCatalogue::getMetadata in lib/Symfony/translation/MessageCatalogue.php
Gets metadata for the given domain and key.

File

lib/Symfony/translation/MetadataAwareInterface.php, line 33

Class

MetadataAwareInterface
MetadataAwareInterface.

Namespace

Symfony\Component\Translation

Code

public function getMetadata($key = '', $domain = 'messages');