public function InsertImageWidgetUtility::formElement in Insert 8
@inheritdoc
Overrides InsertFileWidgetUtility::formElement
File
- src/
Utility/ InsertImageWidgetUtility.php, line 79
Class
Namespace
Drupal\insert\UtilityCode
public function formElement($element, $settings) {
$element = parent::formElement($element, $settings);
$element['#insert_width'] = $settings['insert_width'];
$element['#insert_rotate'] = $settings['insert_rotate'];
return $element;
}