function TestLayoutMainFooter::calculateDependencies

Same name in other branches
  1. 8.9.x core/modules/field_layout/tests/modules/field_layout_test/src/Plugin/Layout/TestLayoutMainFooter.php \Drupal\field_layout_test\Plugin\Layout\TestLayoutMainFooter::calculateDependencies()
  2. 10 core/modules/field_layout/tests/modules/field_layout_test/src/Plugin/Layout/TestLayoutMainFooter.php \Drupal\field_layout_test\Plugin\Layout\TestLayoutMainFooter::calculateDependencies()
  3. 11.x core/modules/field_layout/tests/modules/field_layout_test/src/Plugin/Layout/TestLayoutMainFooter.php \Drupal\field_layout_test\Plugin\Layout\TestLayoutMainFooter::calculateDependencies()

Overrides LayoutDefault::calculateDependencies

File

core/modules/field_layout/tests/modules/field_layout_test/src/Plugin/Layout/TestLayoutMainFooter.php, line 44

Class

TestLayoutMainFooter
Provides an annotated layout plugin for field_layout tests.

Namespace

Drupal\field_layout_test\Plugin\Layout

Code

public function calculateDependencies() {
    $dependencies = parent::calculateDependencies();
    $dependencies['module'][] = 'dependency_from_calculateDependencies';
    return $dependencies;
}

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