You are here

public function PhotosRecentImages::blockSubmit in Album Photos 8.4

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/PhotosRecentImages.php, line 82

Class

PhotosRecentImages
Provides a 'Photos recent images' block.

Namespace

Drupal\photos\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {

  // Save our custom settings when the form is submitted.
  $this
    ->setConfigurationValue('image_count', $form_state
    ->getValue('image_count'));
}