You are here

public function InsertFileWidgetUtility::formElement in Insert 8

Make settings available to the process() method.

Parameters

array $element:

array $settings:

Return value

array

See also

\Drupal\Core\Field\WidgetInterface::formElement()

1 call to InsertFileWidgetUtility::formElement()
InsertImageWidgetUtility::formElement in src/Utility/InsertImageWidgetUtility.php
@inheritdoc
1 method overrides InsertFileWidgetUtility::formElement()
InsertImageWidgetUtility::formElement in src/Utility/InsertImageWidgetUtility.php
@inheritdoc

File

src/Utility/InsertFileWidgetUtility.php, line 145

Class

InsertFileWidgetUtility

Namespace

Drupal\insert\Utility

Code

public function formElement($element, $settings) {
  $element['#insert_absolute'] = $settings['insert_absolute'];
  $element['#insert_styles'] = $settings['insert_styles'];
  $element['#insert_default'] = $settings['insert_default'];
  return $element;
}