Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RotateImageEffect.php

function RotateImageEffect::submitConfigurationForm

Overrides ConfigurableImageEffectBase::submitConfigurationForm

File

core/modules/image/src/Plugin/ImageEffect/RotateImageEffect.php, line 121

Class

RotateImageEffect
Rotates an image resource.

Namespace

Drupal\image\Plugin\ImageEffect

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
    parent::submitConfigurationForm($form, $form_state);
    $this->configuration['degrees'] = $form_state->getValue('degrees');
    $this->configuration['bgcolor'] = $form_state->getValue('bgcolor');
    $this->configuration['random'] = $form_state->getValue('random');
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal