public function Broken::blockForm in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Block/Plugin/Block/Broken.php \Drupal\Core\Block\Plugin\Block\Broken::blockForm()
Returns the configuration form elements specific to this block plugin.
Blocks that need to add form elements to the normal block configuration form should implement 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.
Overrides BlockPluginTrait::blockForm
File
- core/
lib/ Drupal/ Core/ Block/ Plugin/ Block/ Broken.php, line 78
Class
- Broken
- Defines a fallback plugin for missing block plugins.
Namespace
Drupal\Core\Block\Plugin\BlockCode
public function blockForm($form, FormStateInterface $form_state) {
return $this
->brokenMessage();
}