3 namespace Drupal\field_layout_test\Plugin\Layout;
5 use Drupal\Core\Layout\LayoutDefault;
8 * Provides an annotated layout plugin for field_layout tests.
11 * id = "test_layout_main_and_footer",
12 * label = @Translation("Test plugin: Main and Footer"),
13 * category = @Translation("Layout test"),
14 * description = @Translation("Test layout"),
17 * "label" = @Translation("Main Region")
20 * "label" = @Translation("Footer Region")
23 * config_dependencies = {
25 * "dependency_from_annotation",
30 class TestLayoutMainFooter extends LayoutDefault {
35 public function defaultConfiguration() {
37 'setting_1' => 'Default',
44 public function calculateDependencies() {
45 $dependencies = parent::calculateDependencies();
46 $dependencies['module'][] = 'dependency_from_calculateDependencies';