function _block_form_alter_block_type_form_alter_invoke in Block Form Alter 8
Helper function to alter forms for block_content and inline_block plugins.
Parameters
array $form: Nested array of form elements that comprise the form.
\Drupal\Core\Form\FormStateInterface $form_state: The form state.
string $block_type: The machine name of the custom block bundle.
2 calls to _block_form_alter_block_type_form_alter_invoke()
- block_form_alter_form_alter in ./
block_form_alter.module - Implements hook_form_alter().
- _block_form_alter_block_type_form_alter_inline_block_process in ./
block_form_alter.module - Process callback for inline block forms.
File
- ./
block_form_alter.module, line 96 - This module provides block form alter functions.
Code
function _block_form_alter_block_type_form_alter_invoke(array &$form, FormStateInterface &$form_state, string $block_type) {
\Drupal::moduleHandler()
->invokeAll('block_type_form_alter', [
&$form,
&$form_state,
$block_type,
]);
}