You are here

public function elFinderAdminController::adminSettings in elFinder file manager 8.2

Returns an administrative settings

1 string reference to 'elFinderAdminController::adminSettings'
elfinder.routing.yml in ./elfinder.routing.yml
elfinder.routing.yml

File

src/Controller/elFinderAdminController.php, line 22
Contains \Drupal\elfinder\Controller\elFinderAdminController.

Class

elFinderAdminController
Controller routines for elFinder Admin routes.

Namespace

Drupal\elfinder\Controller

Code

public function adminSettings(Request $request) {
  $output['profile_list'] = array(
    '#type' => 'container',
    '#attributes' => array(
      'class' => array(
        'elfinder-profile-list',
      ),
    ),
    'title' => array(
      '#markup' => '<h2>' . $this
        ->t('Profiles') . '</h2>',
    ),
    'list' => $this
      ->entityManager()
      ->getListBuilder('elfinder_profile')
      ->render(),
  );
  $output['settings_form'] = \Drupal::formBuilder()
    ->getForm('Drupal\\elfinder\\Form\\AdminForm') + array(
    '#weight' => 10,
  );
  return $output;
}