function LayoutTestDependenciesPlugin::calculateDependencies
Same name in other branches
- 9 core/modules/system/tests/modules/layout_test/src/Plugin/Layout/LayoutTestDependenciesPlugin.php \Drupal\layout_test\Plugin\Layout\LayoutTestDependenciesPlugin::calculateDependencies()
- 10 core/modules/system/tests/modules/layout_test/src/Plugin/Layout/LayoutTestDependenciesPlugin.php \Drupal\layout_test\Plugin\Layout\LayoutTestDependenciesPlugin::calculateDependencies()
- 11.x core/modules/system/tests/modules/layout_test/src/Plugin/Layout/LayoutTestDependenciesPlugin.php \Drupal\layout_test\Plugin\Layout\LayoutTestDependenciesPlugin::calculateDependencies()
Overrides LayoutDefault::calculateDependencies
File
-
core/
modules/ system/ tests/ modules/ layout_test/ src/ Plugin/ Layout/ LayoutTestDependenciesPlugin.php, line 28
Class
- LayoutTestDependenciesPlugin
- Provides a plugin that contains config dependencies.
Namespace
Drupal\layout_test\Plugin\LayoutCode
public function calculateDependencies() {
$dependencies = [];
$dependencies['config'][] = 'system.menu.myothermenu';
return $dependencies;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.