Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
AdapterInterface Interface Reference
Inheritance diagram for AdapterInterface:
AbstractAdapter Adapter

Public Member Functions

 translate ($messageId, $locale=null)
 
 __ ()
 

Detailed Description

Magento translate adapter interface

@api

Since
100.0.2

Definition at line 15 of file AdapterInterface.php.

Member Function Documentation

◆ __()

__ ( )

Translate string

Returns
string @SuppressWarnings(PHPMD.ShortMethodName)

Implemented in Adapter.

◆ translate()

translate (   $messageId,
  $locale = null 
)

Translate string

Parameters
string | array$messageId
null$locale
Returns
string

Implemented in Adapter.


The documentation for this interface was generated from the following file: