You are here

protected function BynderConfigurationForm::getMetaProperties in Bynder 4.0.x

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

Gets the meta properties from Bynder.

Return value

array Returns meta properties from Bynder.

1 call to BynderConfigurationForm::getMetaProperties()
BynderConfigurationForm::buildForm in src/Form/BynderConfigurationForm.php
Form constructor.

File

src/Form/BynderConfigurationForm.php, line 541

Class

BynderConfigurationForm
Configure bynder to enable OAuth based access.

Namespace

Drupal\bynder\Form

Code

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