You are here

public static function TestViewsBulkOperationsBatch::translate in Views Bulk Operations (VBO) 4.0.x

Same name and namespace in other branches
  1. 8.3 tests/src/Unit/TestViewsBulkOperationsBatch.php \Drupal\Tests\views_bulk_operations\Unit\TestViewsBulkOperationsBatch::translate()

Override t method.

Overrides ViewsBulkOperationsActionCompletedTrait::translate

File

tests/src/Unit/TestViewsBulkOperationsBatch.php, line 15

Class

TestViewsBulkOperationsBatch
Override some class methods for proper testing.

Namespace

Drupal\Tests\views_bulk_operations\Unit

Code

public static function translate($string, array $args = [], array $options = []) {
  return strtr($string, $args);
}