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.
Signature
public function getMetadata([string
$key = '',
[string
$domain = 'messages']] )
Parameters
$key
— string- The key
$domain
— string- The domain name
Returns
- mixed
- The value that was set or an array with the domains/keys or null