You are here

public function FieldBlock::defaultConfiguration in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/src/Plugin/Block/FieldBlock.php \Drupal\layout_builder\Plugin\Block\FieldBlock::defaultConfiguration()

Overrides BlockPluginTrait::defaultConfiguration

File

core/modules/layout_builder/src/Plugin/Block/FieldBlock.php, line 217

Class

FieldBlock
Provides a block that renders a field from an entity.

Namespace

Drupal\layout_builder\Plugin\Block

Code

public function defaultConfiguration() {
  return [
    'label_display' => FALSE,
    'formatter' => [
      'label' => 'above',
      'type' => $this->pluginDefinition['default_formatter'],
      'settings' => [],
      'third_party_settings' => [],
    ],
  ];
}