You are here

protected function BynderConfigurationForm::getDerivatives in Bynder 8.3

Same name and namespace in other branches
  1. 8 src/Form/BynderConfigurationForm.php \Drupal\bynder\Form\BynderConfigurationForm::getDerivatives()
  2. 8.2 src/Form/BynderConfigurationForm.php \Drupal\bynder\Form\BynderConfigurationForm::getDerivatives()
  3. 4.0.x 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 620

Class

BynderConfigurationForm
Configure bynder to enable OAuth based access.

Namespace

Drupal\bynder\Form

Code

protected function getDerivatives() {
  if (!$this->derivatives) {
    try {
      $this->derivatives = $this->bynder
        ->getDerivatives();
    } catch (\Exception $e) {
      return [];
    }
  }
  return $this->derivatives;
}