class PositionShimTestController
Same name and namespace in other branches
- 11.x core/modules/system/tests/modules/position_shim_test/src/Controller/PositionShimTestController.php \Drupal\position_shim_test\Controller\PositionShimTestController
- 10 core/modules/system/tests/modules/position_shim_test/src/Controller/PositionShimTestController.php \Drupal\position_shim_test\Controller\PositionShimTestController
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\position_shim_test\Controller\PositionShimTestController extends \Drupal\Core\Controller\ControllerBase
Expanded class hierarchy of PositionShimTestController
File
-
core/
modules/ system/ tests/ modules/ position_shim_test/ src/ Controller/ PositionShimTestController.php, line 7
Namespace
Drupal\position_shim_test\ControllerView source
class PositionShimTestController extends ControllerBase {
/**
* Provides a page with the jQuery UI position library for testing.
*
* @return array
* The render array.
*/
public function build() {
return [
'reference1' => [
'#type' => 'container',
'#attributes' => [
'id' => 'position-reference-1',
],
],
'#attached' => [
'library' => [
'core/jquery.ui.position',
'position_shim_test/position.shim.test',
],
],
];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.