inline_block_title_automatic.module in Inline Block Title Automatic 8
Module file for inline_block_title_automatic.
File
inline_block_title_automatic.moduleView source
<?php
/**
* @file
* Module file for inline_block_title_automatic.
*/
use Drupal\Core\Form\FormStateInterface;
use Drupal\inline_block_title_automatic\FormAlter;
/**
* Implements hook_form_FORM_ID_alter() for layout_builder_update_block.
*/
function inline_block_title_automatic_form_layout_builder_update_block_alter(&$form, FormStateInterface $form_state, $form_id) {
\Drupal::classResolver()
->getInstanceFromDefinition(FormAlter::class)
->blockAddConfigureAlter($form, $form_state, $form_id);
}
/**
* Implements hook_form_FORM_ID_alter() for layout_builder_add_block.
*/
function inline_block_title_automatic_form_layout_builder_add_block_alter(&$form, FormStateInterface $form_state, $form_id) {
\Drupal::classResolver()
->getInstanceFromDefinition(FormAlter::class)
->blockAddConfigureAlter($form, $form_state, $form_id);
}
Functions
Name | Description |
---|---|
inline_block_title_automatic_form_layout_builder_add_block_alter | Implements hook_form_FORM_ID_alter() for layout_builder_add_block. |
inline_block_title_automatic_form_layout_builder_update_block_alter | Implements hook_form_FORM_ID_alter() for layout_builder_update_block. |