The code below uses a theme function defined by another module. Here is my code:
<?php namespace DrupalgreetingController; use DrupalCoreControllerControllerBase; class PanelController extends ControllerBase { public function displayPanelPage() { $config = $this->config('greeting.settings'); return array( '#theme' => 'panel_page', '#text' => $config->get('page_text'), ); } }
Do you know what this module is? Thank you, Alexis Grolot