You are here

public function MessageCatalogue::setMetadata in Plug 7

Adds metadata to a message domain.

Parameters

string $key The key:

mixed $value The value:

string $domain The domain name:

Overrides MetadataAwareInterface::setMetadata

1 call to MessageCatalogue::setMetadata()
MessageCatalogue::addMetadata in lib/Symfony/translation/MessageCatalogue.php
Adds current values with the new values.

File

lib/Symfony/translation/MessageCatalogue.php, line 261

Class

MessageCatalogue
MessageCatalogue.

Namespace

Symfony\Component\Translation

Code

public function setMetadata($key, $value, $domain = 'messages') {
  $this->metadata[$domain][$key] = $value;
}