You are here

public static function LibraresUiController::preRenderMyElement in Libraries UI 8

File

src/Controller/LibraresUiController.php, line 37

Class

LibraresUiController
Class LibraresUiController.

Namespace

Drupal\libraries_ui\Controller

Code

public static function preRenderMyElement($element) {
  $librariesInfo = \Drupal::service('libraries_ui.default')
    ->getAllLibraries();
  $element['libraries_ui'] = $librariesInfo;
  return $element;
}