views_form_test.module

Same filename in other branches
  1. 10 core/modules/views/tests/modules/views_form_test/views_form_test.module
  2. 11.x core/modules/views/tests/modules/views_form_test/views_form_test.module

Hook implementations for this module.

File

core/modules/views/tests/modules/views_form_test/views_form_test.module

View source
<?php


/**
 * @file
 * Hook implementations for this module.
 */
use Drupal\Core\Form\FormStateInterface;

/**
 * Implements hook_form_BASE_FORM_ID_alter().
 */
function views_form_test_form_views_form_media_media_page_list_alter(&$form, FormStateInterface $form_state, $form_id) {
    $state = \Drupal::state();
    $count = $state->get('hook_form_BASE_FORM_ID_alter_count', 0);
    $state->set('hook_form_BASE_FORM_ID_alter_count', $count + 1);
}

Functions

Title Deprecated Summary
views_form_test_form_views_form_media_media_page_list_alter Implements hook_form_BASE_FORM_ID_alter().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.