You are here

thunder_article.module in Thunder 6.2.x

Thunder Article module hooks.

File

modules/thunder_article/thunder_article.module
View source
<?php

/**
 * @file
 * Thunder Article module hooks.
 */
use Drupal\Core\Form\FormStateInterface;
use Drupal\thunder_article\Form\ThunderNodeForm;

/**
 * Implements hook_form_FORM_ID_alter().
 */
function thunder_article_form_node_form_alter(&$form, FormStateInterface $form_state) {
  \Drupal::service('class_resolver')
    ->getInstanceFromDefinition(ThunderNodeForm::class)
    ->formAlter($form, $form_state);
}