You are here

public function LingotekFake::getProjects in Lingotek Translation 3.3.x

Same name and namespace in other branches
  1. 8 tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getProjects()
  2. 8.2 tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getProjects()
  3. 4.0.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getProjects()
  4. 3.0.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getProjects()
  5. 3.1.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getProjects()
  6. 3.2.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getProjects()
  7. 3.4.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getProjects()
  8. 3.5.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getProjects()
  9. 3.6.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getProjects()
  10. 3.7.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getProjects()
  11. 3.8.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getProjects()

Gets the account related projects.

Parameters

bool $force: Flag indicating if it must be forced to request from the API. If false, will use local cached data.

Return value

array|bool Array with projects information. FALSE in case of error. The keys are the ids, and values are the name of the resource.

Overrides LingotekInterface::getProjects

1 call to LingotekFake::getProjects()
LingotekFake::getResources in tests/modules/lingotek_test/src/LingotekFake.php
Gets the account related resources.

File

tests/modules/lingotek_test/src/LingotekFake.php, line 86

Class

LingotekFake

Namespace

Drupal\lingotek_test

Code

public function getProjects($force = FALSE) {
  $projects = [
    'test_project' => 'Test project',
    'test_project2' => 'Test project 2',
  ];
  return $projects;
}