public function MessageCatalogue::defines in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/translation/MessageCatalogue.php \Symfony\Component\Translation\MessageCatalogue::defines()
Checks if a message has a translation (it does not take into account the fallback mechanism).
Parameters
string $id The message id:
string $domain The domain name:
Return value
bool true if the message has a translation, false otherwise
Overrides MessageCatalogueInterface::defines
File
- vendor/
symfony/ translation/ MessageCatalogue.php, line 97
Class
- MessageCatalogue
- MessageCatalogue.
Namespace
Symfony\Component\TranslationCode
public function defines($id, $domain = 'messages') {
return isset($this->messages[$domain][$id]);
}