You are here

public static function BynderConfigurationForm::submitReloadDerivatives in Bynder 8.3

Same name and namespace in other branches
  1. 8 src/Form/BynderConfigurationForm.php \Drupal\bynder\Form\BynderConfigurationForm::submitReloadDerivatives()
  2. 8.2 src/Form/BynderConfigurationForm.php \Drupal\bynder\Form\BynderConfigurationForm::submitReloadDerivatives()
  3. 4.0.x src/Form/BynderConfigurationForm.php \Drupal\bynder\Form\BynderConfigurationForm::submitReloadDerivatives()

Submit callback that will update cached data.

File

src/Form/BynderConfigurationForm.php, line 384

Class

BynderConfigurationForm
Configure bynder to enable OAuth based access.

Namespace

Drupal\bynder\Form

Code

public static function submitReloadDerivatives(array &$form, FormStateInterface $form_state) {
  \Drupal::service('bynder_api')
    ->updateCachedData();
}