public function FieldBlock::defaultConfiguration in Field as Block 8.2
Overrides BlockPluginTrait::defaultConfiguration
File
- src/
Plugin/ Block/ FieldBlock.php, line 122
Class
- FieldBlock
- Provides a fieldblock.
Namespace
Drupal\fieldblock\Plugin\BlockCode
public function defaultConfiguration() {
return [
'label_from_field' => TRUE,
'field_name' => '',
'formatter_id' => '',
'formatter_settings' => [],
];
}