You are here

olivero_test.module in Drupal 9

Functions to support testing the Olivero theme.

File

core/modules/system/tests/modules/olivero_test/olivero_test.module
View source
<?php

/**
 * @file
 * Functions to support testing the Olivero theme.
 */

/**
 * Implements hook_preprocess_field_multiple_value_form().
 */
function olivero_test_preprocess_field_multiple_value_form(&$variables) {

  // Set test multiple value form field to disabled
  if ($variables["element"]["#field_name"] === "field_multiple_value_form_field") {
    $variables['element']['#disabled'] = TRUE;
  }
}

Functions

Namesort descending Description
olivero_test_preprocess_field_multiple_value_form Implements hook_preprocess_field_multiple_value_form().