public function DocumentConfigForm::__construct in Forena Reports 8
Constructs a \Drupal\system\ConfigFormBase object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.
Overrides ConfigFormBase::__construct
File
- src/
Form/ DocumentConfigForm.php, line 22
Class
Namespace
Drupal\forena\FormCode
public function __construct() {
// Load the possible documents based on the service.
$pm = \Drupal::service('frxplugin.manager.document');
$plugins = $pm
->getDefinitions();
foreach ($plugins as $plugin) {
$id = $plugin['id'];
$name = $plugin['name'];
$ext = $plugin['ext'];
if ($id != 'drupal') {
$this->possible_docs[$id] = "({$ext}){$name}";
}
}
asort($this->possible_docs);
}