You are here

protected function BricksTreeDynamicInlineWidget::getFieldSettings in Bricks​ 8

Same name and namespace in other branches
  1. 2.x modules/bricks_dynamic/src/Plugin/Field/FieldWidget/BricksTreeDynamicInlineWidget.php \Drupal\bricks_dynamic\Plugin\Field\FieldWidget\BricksTreeDynamicInlineWidget::getFieldSettings()

Returns the array of field settings.

Return value

array The array of settings.

Overrides WidgetBase::getFieldSettings

2 calls to BricksTreeDynamicInlineWidget::getFieldSettings()
BricksTreeDynamicInlineWidget::formElement in modules/bricks_dynamic/src/Plugin/Field/FieldWidget/BricksTreeDynamicInlineWidget.php
Returns the form for a single field widget.
BricksTreeDynamicInlineWidget::getTargetBundles in modules/bricks_dynamic/src/Plugin/Field/FieldWidget/BricksTreeDynamicInlineWidget.php
Gets the target bundles for the current field.

File

modules/bricks_dynamic/src/Plugin/Field/FieldWidget/BricksTreeDynamicInlineWidget.php, line 100

Class

BricksTreeDynamicInlineWidget
Plugin annotation @FieldWidget( id = "bricks_tree_dynamic_inline", label = @Translation("Bricks tree Dynamic (Inline entity form)"), description = @Translation("A tree of inline entity forms."), field_types = { "bricks_dynamic" }, …

Namespace

Drupal\bricks_dynamic\Plugin\Field\FieldWidget

Code

protected function getFieldSettings() {
  $settings = $this->fieldDefinition
    ->getSettings();
  $settings['target_type'] = $this
    ->getEntityType();
  return $settings;
}