Documentation

TranslatableMessageBuilder
in package

Tags
author

Jakub Caban kuba.iluvatar@gmail.com

Table of Contents

Methods

withParameters()  : TranslatableInterface
This method creates a new TranslationMessage object with the same content and domain as the given object, but updates its translation parameters to merge them with the new given parameters.

Methods

withParameters()

This method creates a new TranslationMessage object with the same content and domain as the given object, but updates its translation parameters to merge them with the new given parameters.

public static withParameters(TranslatableInterface $translatable, array<string|int, mixed> $parameters) : TranslatableInterface

Due to the limited nature of TranslatableInterface we cannot guarantee correct behavior of any other TranslatableInterface implementation, therefore they will be returned as provided.

Parameters
$translatable : TranslatableInterface
$parameters : array<string|int, mixed>
Return values
TranslatableInterface

        
On this page

Search results