You are here

public function PagerTestWidget::submitFirst 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::submitFirst()

Submit callback for first page reset button.

File

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

Class

PagerTestWidget
Pager test widget implementation for test purposes.

Namespace

Drupal\entity_browser_test\Plugin\EntityBrowser\Widget

Code

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