TestLayoutMainFooter.php
Same filename in other branches
- 9 core/modules/field_layout/tests/modules/field_layout_test/src/Plugin/Layout/TestLayoutMainFooter.php
- 8.9.x core/modules/field_layout/tests/modules/field_layout_test/src/Plugin/Layout/TestLayoutMainFooter.php
- 10 core/modules/field_layout/tests/modules/field_layout_test/src/Plugin/Layout/TestLayoutMainFooter.php
Namespace
Drupal\field_layout_test\Plugin\LayoutFile
-
core/
modules/ field_layout/ tests/ modules/ field_layout_test/ src/ Plugin/ Layout/ TestLayoutMainFooter.php
View source
<?php
declare (strict_types=1);
namespace Drupal\field_layout_test\Plugin\Layout;
use Drupal\Core\Layout\Attribute\Layout;
use Drupal\Core\Layout\LayoutDefault;
use Drupal\Core\StringTranslation\TranslatableMarkup;
/**
* Provides an attributed layout plugin for field_layout tests.
*/
class TestLayoutMainFooter extends LayoutDefault {
/**
* {@inheritdoc}
*/
public function defaultConfiguration() {
return [
'setting_1' => 'Default',
];
}
/**
* {@inheritdoc}
*/
public function calculateDependencies() {
$dependencies = parent::calculateDependencies();
$dependencies['module'][] = 'system';
return $dependencies;
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
TestLayoutMainFooter | Provides an attributed layout plugin for field_layout tests. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.