You are here

public function InsertImageWidgetUtility::formElement in Insert 8

@inheritdoc

Overrides InsertFileWidgetUtility::formElement

File

src/Utility/InsertImageWidgetUtility.php, line 79

Class

InsertImageWidgetUtility

Namespace

Drupal\insert\Utility

Code

public function formElement($element, $settings) {
  $element = parent::formElement($element, $settings);
  $element['#insert_width'] = $settings['insert_width'];
  $element['#insert_rotate'] = $settings['insert_rotate'];
  return $element;
}