public static function InlineBlock::processBlockForm in Drupal 9
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/Plugin/Block/InlineBlock.php \Drupal\layout_builder\Plugin\Block\InlineBlock::processBlockForm()
Process callback to insert a Custom Block form.
Parameters
array $element: The containing element.
\Drupal\Core\Form\FormStateInterface $form_state: The form state.
Return value
array The containing element, with the Custom Block form inserted.
File
- core/
modules/ layout_builder/ src/ Plugin/ Block/ InlineBlock.php, line 162
Class
- InlineBlock
- Defines an inline block plugin type.
Namespace
Drupal\layout_builder\Plugin\BlockCode
public static function processBlockForm(array $element, FormStateInterface $form_state) {
/** @var \Drupal\block_content\BlockContentInterface $block */
$block = $element['#block'];
EntityFormDisplay::collectRenderDisplay($block, 'edit')
->buildForm($block, $element, $form_state);
$element['revision_log']['#access'] = FALSE;
$element['info']['#access'] = FALSE;
return $element;
}