alter_blocks_element_markup-1.0.0/alter_blocks_element_markup.module
alter_blocks_element_markup.module
<?php
/**
* @file
* The hook implementations for the alter blocks element markup.
*/
use Drupal\Core\Form\FormStateInterface;
use Drupal\alter_blocks_element_markup\AlterBlocksElementMarkup;
/**
* Implements hook_theme_registry_alter().
*/
function alter_blocks_element_markup_theme_registry_alter(array &$theme_registry) {
$path = \Drupal::service('extension.list.module')->getPath('alter_blocks_element_markup');
$theme_registry['block']['path'] = $path . '/templates';
\Drupal::logger('AlterBlocksElementMarkup')->notice(print_r($theme_registry['block'], true));
}
/**
* Implements hook_form_FORM_ID_alter().
*/
function alter_blocks_element_markup_form_block_form_alter(array &$form, FormStateInterface $form_state) {
AlterBlocksElementMarkup::addConfigForm($form, $form_state);
}
/**
* Implements hook_preprocess_HOOK().
*/
function alter_blocks_element_markup_preprocess_block(array &$variables) {
AlterBlocksElementMarkup::preprocess($variables);
}
