You are here

public function BynderApiTest::getBrands in Bynder 8.2

Same name and namespace in other branches
  1. 8.3 tests/modules/bynder_test_module/src/BynderApiTest.php \Drupal\bynder_test_module\BynderApiTest::getBrands()
  2. 8 tests/modules/bynder_test_module/src/BynderApiTest.php \Drupal\bynder_test_module\BynderApiTest::getBrands()
  3. 4.0.x tests/modules/bynder_test_module/src/BynderApiTest.php \Drupal\bynder_test_module\BynderApiTest::getBrands()

Returns the defined value.

File

tests/modules/bynder_test_module/src/BynderApiTest.php, line 29

Class

BynderApiTest
Bynder API test service.

Namespace

Drupal\bynder_test_module

Code

public function getBrands() {
  if ($brands = $this->state
    ->get('bynder.bynder_test_brands')) {
    return $brands;
  }
  throw new RequestException('Test', new Request('test', 'test'));
}