TripalBlastUIController.php 750 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * @file
  4. * This is the controller for Tripal BLAST UI.
  5. */
  6. namespace Drupal\tripal_blast\Controller;
  7. use Drupal\Core\Controller\ControllerBase;
  8. /**
  9. * Defines TripalBlastUI class.
  10. *
  11. */
  12. class TripalBlastUIController extends ControllerBase {
  13. /**
  14. * Returns a render-able array to create Tripal BLAST UI elements.
  15. * A list of variables (context links presented in the interface) is used
  16. * and is defined in the hook_theme implementation of this module.
  17. * @see hook_theme in tripal_blast.module.
  18. */
  19. public function ui() {
  20. return [
  21. // Tripal BLAST UI page theme.
  22. '#theme' => 'theme-tripal-blast-ui',
  23. '#attached' => [
  24. 'library' => ['tripal_blast/tripal-blast-ui']
  25. ]
  26. ];
  27. }
  28. }