You are here

protected function BricksTreeDynamicInlineWidget::getFieldSettings in Bricks​ 2.x

Same name and namespace in other branches
  1. 8 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.

2 calls to BricksTreeDynamicInlineWidget::getFieldSettings()
BricksTreeDynamicInlineWidget::formElement in modules/bricks_dynamic/src/Plugin/Field/FieldWidget/BricksTreeDynamicInlineWidget.php
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;
}