BlockValidationTest::$propertiesWithRequiredKeys

Same name and namespace in other branches
  1. 11.x core/modules/block/tests/src/Kernel/BlockValidationTest.php \Drupal\Tests\block\Kernel\BlockValidationTest::propertiesWithRequiredKeys

Type: propertiesWithRequiredKeys

Overrides ConfigEntityValidationTestBase::$propertiesWithRequiredKeys

File

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

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.