You are here

public function PagerTestWidget::submitLast in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 tests/modules/entity_browser_test/src/Plugin/EntityBrowser/Widget/PagerTestWidget.php \Drupal\entity_browser_test\Plugin\EntityBrowser\Widget\PagerTestWidget::submitLast()

Submit callback for last page reset button.

File

tests/modules/entity_browser_test/src/Plugin/EntityBrowser/Widget/PagerTestWidget.php, line 69

Class

PagerTestWidget
Pager test widget implementation for test purposes.

Namespace

Drupal\entity_browser_test\Plugin\EntityBrowser\Widget

Code

public function submitLast(array &$form, FormStateInterface $form_state) {
  EntityBrowserPagerElement::setCurrentPage($form_state, 4);
  $form_state
    ->setRebuild();
}