public function BynderApiTest::hasAccessToken in Bynder 4.0.x
Same name and namespace in other branches
- 8.3 tests/modules/bynder_test_module/src/BynderApiTest.php \Drupal\bynder_test_module\BynderApiTest::hasAccessToken()
- 8 tests/modules/bynder_test_module/src/BynderApiTest.php \Drupal\bynder_test_module\BynderApiTest::hasAccessToken()
- 8.2 tests/modules/bynder_test_module/src/BynderApiTest.php \Drupal\bynder_test_module\BynderApiTest::hasAccessToken()
Returns value set in state.
Overrides BynderApi::hasAccessToken
File
- tests/
modules/ bynder_test_module/ src/ BynderApiTest.php, line 124
Class
- BynderApiTest
- Bynder API test service.
Namespace
Drupal\bynder_test_moduleCode
public function hasAccessToken() {
if (!$this->state
->get('bynder.bynder_test_access_token')) {
return FALSE;
}
return TRUE;
}