public function CommandHelper::t in Search API 8
Translates a string using the set translation method.
Parameters
string $message: The message to translate.
array $arguments: (optional) The translation arguments.
Return value
string The translated message.
14 calls to CommandHelper::t()
- CommandHelper::clearIndexCommand in src/
Utility/ CommandHelper.php - Deletes all items from one or more indexes.
- CommandHelper::clearServerCommand in src/
Utility/ CommandHelper.php - Clears all indexes on a server.
- CommandHelper::disableIndexCommand in src/
Utility/ CommandHelper.php - Disables one or more enabled search indexes.
- CommandHelper::disableServerCommand in src/
Utility/ CommandHelper.php - Disables a server.
- CommandHelper::enableIndexCommand in src/
Utility/ CommandHelper.php - Enables one or more disabled search indexes.
File
- src/
Utility/ CommandHelper.php, line 747
Class
- CommandHelper
- Provides functionality to be used by CLI tools.
Namespace
Drupal\search_api\UtilityCode
public function t($message, array $arguments = []) {
return call_user_func_array($this->translationFunction, [
$message,
$arguments,
]);
}