public function TestController::variable in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/tests/modules/conneg_test/src/Controller/TestController.php \Drupal\conneg_test\Controller\TestController::variable()
Returns a render array depending on some passed in value.
Parameters
string $plugin_id: The plugin ID.
Return value
array The render array
1 string reference to 'TestController::variable'
- conneg_test.routing.yml in core/
modules/ system/ tests/ modules/ conneg_test/ conneg_test.routing.yml - core/modules/system/tests/modules/conneg_test/conneg_test.routing.yml
File
- core/
modules/ system/ tests/ modules/ conneg_test/ src/ Controller/ TestController.php, line 70 - Contains \Drupal\conneg_test\Controller\TestController.
Class
- TestController
- Test controller for content negotation tests.
Namespace
Drupal\conneg_test\ControllerCode
public function variable($plugin_id) {
return [
'#markup' => $plugin_id,
];
}