You are here

DefaultController.php in Apache Solr Config Generator 8

File

src/Controller/DefaultController.php
View source
<?php

/**
 * @file
 * Contains Drupal\apachesolr_confgen\Controller\DefaultController.
 */
namespace Drupal\apachesolr_confgen\Controller;

use Drupal\Core\Controller\ControllerBase;

/**
 * Class DefaultController.
 *
 * @package Drupal\apachesolr_confgen\Controller
 */
class DefaultController extends ControllerBase {

  /**
   * Hello.
   *
   * @return string
   *   Return Hello string.
   */
  public function hello($name) {
    return [
      '#type' => 'markup',
      '#markup' => $this
        ->t('Hello @name!', [
        '@name' => $name,
      ]),
    ];
  }

}

Classes

Namesort descending Description
DefaultController Class DefaultController.