You are here

public function BynderConfigurationForm::usageAjaxCallback in Bynder 8

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

Ajax callback for usage metadata select field.

File

src/Form/BynderConfigurationForm.php, line 312

Class

BynderConfigurationForm
Configure bynder to enable OAuth based access.

Namespace

Drupal\bynder\Form

Code

public function usageAjaxCallback(array &$form, FormStateInterface &$form_state) {
  $form_state
    ->setRebuild(TRUE);
  return $form['usage_wrapper']['restrictions'];
}