started materio_home module

This commit is contained in:
2019-03-25 18:28:17 +01:00
parent 96eb901675
commit e514a876c2
6 changed files with 88 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
<?php
namespace Drupal\materio_home\Controller;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Datetime\DrupalDateTime;
use Drupal\taxonomy\Entity\Term;
use Drupal\workflow\Entity\WorkflowManager;
use Drupal\Core\Url;
use Drupal\Core\Language\LanguageInterface;
// use Symfony\Component\HttpFoundation\JsonResponse;
use Drupal\Core\Cache\CacheableJsonResponse;
use Drupal\Core\Cache\CacheableMetadata;
use Drupal\core\render\RenderContext;
class HomeController extends ControllerBase {
/**
* Display home as a page.
*
* @return renderable array
*/
public function home() {
// $view_builder = \Drupal::entityTypeManager()->getViewBuilder('node');
$contents = array("#theme"=>'materio_home');
return $contents;
}
}