upgraded core, fixed customs modules
This commit is contained in:
@@ -9,7 +9,7 @@ use \Drupal\Core\Form\FormStateInterface;
|
||||
use \Drupal\Core\Block\BlockPluginInterface;
|
||||
use \Drupal\Core\Url;
|
||||
use \Drupal\Core\Link;
|
||||
|
||||
use \Drupal\materio_user\MaterioUserLoginBlockAlterRender;
|
||||
/**
|
||||
* implements hook_form_FORM_ID_alter()
|
||||
*
|
||||
@@ -121,10 +121,12 @@ function _materio_user_process_password_confirm($element){
|
||||
/**
|
||||
* implements hook_block_view_BASE_BLOCK_ID_alter()
|
||||
*
|
||||
* https://www.drupal.org/project/drupal/issues/2626224
|
||||
* OLD D8 https://www.drupal.org/project/drupal/issues/2626224
|
||||
* NEW D9 https://www.drupal.org/node/2966725
|
||||
*/
|
||||
function materio_user_block_view_user_login_block_alter(array &$build, BlockPluginInterface $block) {
|
||||
$build['#pre_render'][] = '_materio_user_user_login_block_pre_render';
|
||||
// $build['#pre_render'][] = '_materio_user_user_login_block_pre_render';
|
||||
$build['#pre_render'][] = [MaterioUserLoginBlockAlterRender::class, 'preRender'];
|
||||
}
|
||||
|
||||
function _materio_user_user_login_block_pre_render(array $build){
|
||||
|
Reference in New Issue
Block a user