function EntityTestBlock::defaultConfiguration

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/entity_test/src/Plugin/Block/EntityTestBlock.php \Drupal\entity_test\Plugin\Block\EntityTestBlock::defaultConfiguration()

File

core/modules/system/tests/modules/entity_test/src/Plugin/Block/EntityTestBlock.php, line 34

Class

EntityTestBlock
Provides a block that renders an entity with parallel placeholder rendering.

Namespace

Drupal\entity_test\Plugin\Block

Code

public function defaultConfiguration() : array {
  return [
    'entity_type_id' => 'entity_test',
    'entity_id' => NULL,
  ] + parent::defaultConfiguration();
}

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