You are here

public function BynderApiTest::getDerivatives in Bynder 8

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

Returns value set in state.

File

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

Class

BynderApiTest
Bynder API test service.

Namespace

Drupal\bynder_test_module

Code

public function getDerivatives() {
  if (!is_array($this->state
    ->get('bynder.bynder_test_derivatives'))) {
    throw new \Exception();
  }
  return $this->state
    ->get('bynder.bynder_test_derivatives');
}