You are here

public function ImceAdminBrowserController::page in IMCE 8.2

Browser Page.

Return value

string Return Hello string.

1 string reference to 'ImceAdminBrowserController::page'
imce.routing.yml in ./imce.routing.yml
imce.routing.yml

File

src/Controller/ImceAdminBrowserController.php, line 18

Class

ImceAdminBrowserController
Class ImceAdminBrowserController.

Namespace

Drupal\imce\Controller

Code

public function page() {
  $render['iframe'] = [
    '#type' => 'inline_template',
    '#template' => '<iframe class="imce-browser" src="{{ url }}"></iframe>',
    '#context' => [
      'url' => '/imce',
    ],
  ];
  $render['#attached']['library'][] = 'imce/drupal.imce.admin';
  return $render;
}