function uikit_components_form_block_form_builder in UIkit Components 8.2
Same name and namespace in other branches
- 8.3 includes/alter.inc \uikit_components_form_block_form_builder()
- 8 uikit_components.module \uikit_components_form_block_form_builder()
Entity builder for the block configuration entity.
1 string reference to 'uikit_components_form_block_form_builder'
- uikit_components_form_block_form_alter in includes/
alter.inc - Implements hook_form_BASE_FORM_ID_alter().
File
- includes/
alter.inc, line 155 - Modify structured content arrays.
Code
function uikit_components_form_block_form_builder($entity_type, Block $block, &$form, FormStateInterface $form_state) {
if ($form_state
->getValue('uikit_navbar_alignment')) {
$block
->setThirdPartySetting('uikit_components', 'uikit_navbar_alignment', $form_state
->getValue('uikit_navbar_alignment'));
}
}