class OliveroTestThemeHooks

Hook implementations for olivero_test.

Hierarchy

Expanded class hierarchy of OliveroTestThemeHooks

File

core/modules/system/tests/modules/olivero_test/src/Hook/OliveroTestThemeHooks.php, line 12

Namespace

Drupal\olivero_test\Hook
View source
class OliveroTestThemeHooks {
  
  /**
   * Implements hook_preprocess_field_multiple_value_form().
   */
  public function preprocessFieldMultipleValueForm(&$variables) : void {
    // Set test multiple value form field to disabled.
    if ($variables["element"]["#field_name"] === "field_multiple_value_form_field") {
      $variables['element']['#disabled'] = TRUE;
    }
  }
  
  /**
   * Implements hook_preprocess_html().
   */
  public function preprocessHtml(&$variables) : void {
    $variables['#attached']['library'][] = 'olivero_test/log-errors';
  }

}

Members

Title Sort descending Modifiers Object type Summary
OliveroTestThemeHooks::preprocessFieldMultipleValueForm public function Implements hook_preprocess_field_multiple_value_form().
OliveroTestThemeHooks::preprocessHtml public function Implements hook_preprocess_html().

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