You are here

public function BlockStyleInterface::prepareForm in Block Style Plugins 8

Returns the configuration form elements specific to a block configuration.

This code will be run as part of a form alter so that the current blocks configuration will be available to this method.

Parameters

array $form: The form definition array for the block configuration form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

array The renderable form array representing the entire configuration form.

1 method overrides BlockStyleInterface::prepareForm()
BlockStyleBase::prepareForm in src/Plugin/BlockStyleBase.php
Returns the configuration form elements specific to a block configuration.

File

src/Plugin/BlockStyleInterface.php, line 29

Class

BlockStyleInterface
Defines an interface for Block style plugins.

Namespace

Drupal\block_style_plugins\Plugin

Code

public function prepareForm(array $form, FormStateInterface $form_state);