You are here

public function BlockEditor::configForm in Forena Reports 8

Same name and namespace in other branches
  1. 7.5 src/Editor/BlockEditor.php \Drupal\forena\Editor\BlockEditor::configForm()

Use the classes configForm method to build the form.

Parameters

$builder:

$config:

Return value

array Form elements

File

src/Editor/BlockEditor.php, line 282

Class

BlockEditor

Namespace

Drupal\forena\Editor

Code

public function configForm($builder, &$config) {
  $this
    ->getBuilders();
  $form = array();
  if (isset($this->builders[$builder])) {
    $b = $this->builders[$builder];
    if (method_exists($b, 'configForm')) {
      $form = $b
        ->configForm($config);
    }
  }
  return $form;
}