FieldExampleController.php

Same filename in other branches
  1. 4.0.x modules/field_example/src/Controller/FieldExampleController.php

Namespace

Drupal\field_example\Controller

File

modules/field_example/src/Controller/FieldExampleController.php

View source
<?php

namespace Drupal\field_example\Controller;

use Drupal\examples\Utility\DescriptionTemplateTrait;

/**
 * Controller for field example description page.
 *
 * This class uses the DescriptionTemplateTrait to display text we put in the
 * templates/description.html.twig file.
 */
class FieldExampleController {
    use DescriptionTemplateTrait;
    
    /**
     * {@inheritdoc}
     */
    protected function getModuleName() {
        return 'field_example';
    }

}

Classes

Title Deprecated Summary
FieldExampleController Controller for field example description page.