public function BynderApiTest::getBrands in Bynder 8.2
Same name and namespace in other branches
- 8.3 tests/modules/bynder_test_module/src/BynderApiTest.php \Drupal\bynder_test_module\BynderApiTest::getBrands()
- 8 tests/modules/bynder_test_module/src/BynderApiTest.php \Drupal\bynder_test_module\BynderApiTest::getBrands()
- 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_moduleCode
public function getBrands() {
if ($brands = $this->state
->get('bynder.bynder_test_brands')) {
return $brands;
}
throw new RequestException('Test', new Request('test', 'test'));
}