You are here

public function BlockEditor::builderList in Forena Reports 7.5

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

File

src/Editor/BlockEditor.php, line 252

Class

BlockEditor

Namespace

Drupal\forena\Editor

Code

public function builderList() {
  $this
    ->getBuilders();
  $r = Frx::DataManager()
    ->repository($this->provider);
  $plugin = get_class($r);
  $list = array();
  foreach ($this->builders as $class => $b) {
    if (array_search($plugin, $b->supportedPlugins) !== FALSE && $b->name && $b->type == $this->block['type']) {
      $list[$class] = $b->name;
    }
  }
  asort($list);
  return $list;
}