public function EntityField::defaultConfiguration in Chaos Tool Suite (ctools) 8.3
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' => isset($field_type_definition['default_formatter']) ? $field_type_definition['default_formatter'] : '',
'settings' => [],
'third_party_settings' => [],
'weight' => 0,
],
];
}