class RenderArrayNonHtmlSubscriberTestController
Same name and namespace in other branches
- 11.x core/modules/system/tests/modules/render_array_non_html_subscriber_test/src/RenderArrayNonHtmlSubscriberTestController.php \Drupal\render_array_non_html_subscriber_test\RenderArrayNonHtmlSubscriberTestController
- 10 core/modules/system/tests/modules/render_array_non_html_subscriber_test/src/RenderArrayNonHtmlSubscriberTestController.php \Drupal\render_array_non_html_subscriber_test\RenderArrayNonHtmlSubscriberTestController
- 8.9.x core/modules/system/tests/modules/render_array_non_html_subscriber_test/src/RenderArrayNonHtmlSubscriberTestController.php \Drupal\render_array_non_html_subscriber_test\RenderArrayNonHtmlSubscriberTestController
Hierarchy
- class \Drupal\Core\Controller\ControllerBase implements \Drupal\Core\DependencyInjection\ContainerInjectionInterface uses \Drupal\Core\Logger\LoggerChannelTrait, \Drupal\Core\Messenger\MessengerTrait, \Drupal\Core\Routing\RedirectDestinationTrait, \Drupal\Core\StringTranslation\StringTranslationTrait
- class \Drupal\render_array_non_html_subscriber_test\RenderArrayNonHtmlSubscriberTestController extends \Drupal\Core\Controller\ControllerBase
Expanded class hierarchy of RenderArrayNonHtmlSubscriberTestController
File
-
core/
modules/ system/ tests/ modules/ render_array_non_html_subscriber_test/ src/ RenderArrayNonHtmlSubscriberTestController.php, line 8
Namespace
Drupal\render_array_non_html_subscriber_testView source
class RenderArrayNonHtmlSubscriberTestController extends ControllerBase {
/**
* @return string
*/
public function rawString() {
return new Response($this->t('Raw controller response.'));
}
/**
* @return array
*/
public function renderArray() {
return [
'#type' => 'html_tag',
'#tag' => 'p',
'#value' => $this->t('Controller response successfully rendered.'),
];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.