FieldExampleController.php
Same filename in other branches
Namespace
Drupal\field_example\ControllerFile
-
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. |