You are here

public static function ViewsBulkOperationsBatch::t in Views Bulk Operations (VBO) 8

Same name and namespace in other branches
  1. 8.2 src/ViewsBulkOperationsBatch.php \Drupal\views_bulk_operations\ViewsBulkOperationsBatch::t()

Translation function wrapper.

See also

\Drupal\Core\StringTranslation\TranslationInterface:translate()

4 calls to ViewsBulkOperationsBatch::t()
ViewsBulkOperationsBatch::finished in src/ViewsBulkOperationsBatch.php
Batch finished callback.
ViewsBulkOperationsBatch::getBatch in src/ViewsBulkOperationsBatch.php
Batch builder function.
ViewsBulkOperationsBatch::getList in src/ViewsBulkOperationsBatch.php
Gets the list of entities to process.
ViewsBulkOperationsBatch::operation in src/ViewsBulkOperationsBatch.php
Batch operation callback.
1 method overrides ViewsBulkOperationsBatch::t()
TestViewsBulkOperationsBatch::t in tests/src/Unit/TestViewsBulkOperationsBatch.php
Override t method.

File

src/ViewsBulkOperationsBatch.php, line 17

Class

ViewsBulkOperationsBatch
Defines module Batch API methods.

Namespace

Drupal\views_bulk_operations

Code

public static function t($string, array $args = [], array $options = []) {
  return \Drupal::translation()
    ->translate($string, $args, $options);
}