themes.php 389 B

123456789101112131415161718192021
  1. <?php
  2. namespace Grav\Plugin\Admin;
  3. /**
  4. * Admin theme object
  5. *
  6. * @author RocketTheme
  7. * @license MIT
  8. */
  9. class Themes extends \Grav\Common\Themes
  10. {
  11. public function init()
  12. {
  13. /** @var Themes $themes */
  14. $themes = $this->grav['themes'];
  15. $themes->configure();
  16. $themes->initTheme();
  17. $this->grav->fireEvent('onAdminThemeInitialized');
  18. }
  19. }