protected function BynderConfigurationForm::getDerivatives in Bynder 4.0.x
Same name and namespace in other branches
- 8.3 src/Form/BynderConfigurationForm.php \Drupal\bynder\Form\BynderConfigurationForm::getDerivatives()
- 8 src/Form/BynderConfigurationForm.php \Drupal\bynder\Form\BynderConfigurationForm::getDerivatives()
- 8.2 src/Form/BynderConfigurationForm.php \Drupal\bynder\Form\BynderConfigurationForm::getDerivatives()
Gets the derivatives from Bynder.
Return value
array Derivatives info.
1 call to BynderConfigurationForm::getDerivatives()
- BynderConfigurationForm::buildForm in src/
Form/ BynderConfigurationForm.php - Form constructor.
File
- src/
Form/ BynderConfigurationForm.php, line 559
Class
- BynderConfigurationForm
- Configure bynder to enable OAuth based access.
Namespace
Drupal\bynder\FormCode
protected function getDerivatives() {
if (!$this->derivatives) {
try {
$this->derivatives = $this->bynder
->getDerivatives();
} catch (\Exception $e) {
return [];
}
}
return $this->derivatives;
}