function collapsiblock_block_form_form_builder in Collapsiblock 8.2
Same name and namespace in other branches
- 4.x collapsiblock.module \collapsiblock_block_form_form_builder()
- 3.x collapsiblock.module \collapsiblock_block_form_form_builder()
Entity builder for the block form with third party options.
See also
collapsiblock_form_block_form_alter()
1 string reference to 'collapsiblock_block_form_form_builder'
- collapsiblock_form_block_form_alter in ./
collapsiblock.module - Implements hook_form_FORM_ID_alter().
File
- ./
collapsiblock.module, line 71 - Make blocks collapsible.
Code
function collapsiblock_block_form_form_builder($entity_type, Block $block, &$form, FormStateInterface $form_state) {
$block
->setThirdPartySetting('collapsiblock', 'collapse_action', $form_state
->getValue('collapsiblock_settings')['collapse_action']);
}