You are here

public function PhotosUserImages::blockSubmit in Album Photos 8.4

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/PhotosUserImages.php, line 173

Class

PhotosUserImages
Provides a 'Photos user 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'));
}