function LayoutAttributeTest::testDeprecatedMissingProperties
Test deprecating plugins without a label or category.
File
-
core/
tests/ Drupal/ Tests/ Core/ Layout/ LayoutAttributeTest.php, line 24
Class
- LayoutAttributeTest
- Tests the Layout attribute.
Namespace
Drupal\Tests\Core\LayoutCode
public function testDeprecatedMissingProperties() : void {
$this->expectDeprecation('A layout plugin not having at least one of the label or deriver properties is deprecated in drupal:11.4.0 and having at least one of these properties will be enforced in drupal:12.0.0. See https://www.drupal.org/node/3464076');
new Layout('layout_without_label');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.