function LayoutTestDependenciesPlugin::calculateDependencies

Same name and namespace in other branches
  1. 9 core/modules/system/tests/modules/layout_test/src/Plugin/Layout/LayoutTestDependenciesPlugin.php \Drupal\layout_test\Plugin\Layout\LayoutTestDependenciesPlugin::calculateDependencies()
  2. 8.9.x core/modules/system/tests/modules/layout_test/src/Plugin/Layout/LayoutTestDependenciesPlugin.php \Drupal\layout_test\Plugin\Layout\LayoutTestDependenciesPlugin::calculateDependencies()
  3. 10 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 29

Class

LayoutTestDependenciesPlugin
Provides a plugin that contains config dependencies.

Namespace

Drupal\layout_test\Plugin\Layout

Code

public function calculateDependencies() {
    $dependencies = [];
    $dependencies['config'][] = 'system.menu.my-other-menu';
    return $dependencies;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.