mini\Metadata\AttributeMetadataFactory::translatable() Method

private

Signature

private function translatable(Stringable|string $text, string $sourceFile): Stringable

Parameters

Name Type Default Description
$text Stringable|string required Documentation missing
$sourceFile string required Documentation missing

Returns

Stringable

Documentation

Wrap a string value in Translatable with the source file context

If the value is already a Stringable (e.g., Translatable), returns it as-is.

Source

src/Metadata/AttributeMetadataFactory.php:122-128