BlockValidationTest::$propertiesWithRequiredKeys

Type: propertiesWithRequiredKeys

Overrides ConfigEntityValidationTestBase::$propertiesWithRequiredKeys

File

core/modules/block/tests/src/Kernel/BlockValidationTest.php, line 27

Class

BlockValidationTest
Tests validation of block entities.

Namespace

Drupal\Tests\block\Kernel

Code

protected static array $propertiesWithRequiredKeys = [
    'settings' => [
        "'id' is a required key.",
        "'label' is a required key.",
        "'label_display' is a required key.",
        "'provider' is a required key.",
    ],
];

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