function EntityField::defaultConfiguration
Same name in other branches
- 8.x-3.x modules/ctools_block/src/Plugin/Block/EntityField.php \Drupal\ctools_block\Plugin\Block\EntityField::defaultConfiguration()
Overrides BlockPluginTrait::defaultConfiguration
File
-
modules/
ctools_block/ src/ Plugin/ Block/ EntityField.php, line 188
Class
- EntityField
- Provides a block to a field on an entity.
Namespace
Drupal\ctools_block\Plugin\BlockCode
public function defaultConfiguration() {
$field_type_definition = $this->getFieldTypeDefinition();
return [
'formatter' => [
'label' => 'above',
'type' => $field_type_definition['default_formatter'] ?? '',
'settings' => [],
'third_party_settings' => [],
'weight' => 0,
],
];
}