You are here

public function MetadataAwareInterface::getMetadata in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/translation/MetadataAwareInterface.php \Symfony\Component\Translation\MetadataAwareInterface::getMetadata()

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 vendor/symfony/translation/MessageCatalogue.php
Gets metadata for the given domain and key.

File

vendor/symfony/translation/MetadataAwareInterface.php, line 33

Class

MetadataAwareInterface
MetadataAwareInterface.

Namespace

Symfony\Component\Translation

Code

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