BlockForm

Provides form for block instance forms. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\block\BlockForm File core/modules/block/src/BlockForm.php, line 23 Namespace Drupal\block Members Name Modifiers Type Des

BlockForm::$contextRepository

The context repository service. Type: \Drupal\Core\Plugin\Context\ContextRepositoryInterface File core/modules/block/src/BlockForm.php, line 72 Class BlockForm Provides form for block instance forms. Namespace Drupal\block Code protected $contextRepository;

BlockEntityOffCanvasForm::validateVisibility

protected BlockEntityOffCanvasForm::validateVisibility(array $form, FormStateInterface $form_state) Helper function to independently validate the visibility UI. Parameters array $form: A nested array form elements comprising the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides BlockForm::validateVisibility File core/modules/outside_in/src/Block/BlockEntityOffCanvasForm.php, line 79 Class BlockEntityOffCanvasForm Provides form for block insta

BlockEntityOffCanvasForm::title

public BlockEntityOffCanvasForm::title(BlockInterface $block) Provides a title callback to get the block's admin label. Parameters \Drupal\block\BlockInterface $block: The block entity. Return value \Drupal\Core\StringTranslation\TranslatableMarkup The title. File core/modules/outside_in/src/Block/BlockEntityOffCanvasForm.php, line 28 Class BlockEntityOffCanvasForm Provides form for block instance forms when used in the off-canvas tray. Namespace Drupal\outside_in\Block Code public f

BlockEntityOffCanvasForm::buildVisibilityInterface

protected BlockEntityOffCanvasForm::buildVisibilityInterface(array $form, FormStateInterface $form_state) Helper function for building the visibility UI form. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form array with the visibility UI added in. Overrides BlockForm::buildVisibilityInterface File core/modules/outside_in/src/Block/BlockEntityOffCanvasFo

BlockEntityOffCanvasForm::actions

protected BlockEntityOffCanvasForm::actions(array $form, FormStateInterface $form_state) Returns an array of supported actions for the current entity form. @todo Consider introducing a 'preview' action here, since it is used by many entity types. Overrides BlockForm::actions File core/modules/outside_in/src/Block/BlockEntityOffCanvasForm.php, line 61 Class BlockEntityOffCanvasForm Provides form for block instance forms when used in the off-canvas tray. Namespace Drupal\outside_in\Block

BlockEntityOffCanvasForm::form

public BlockEntityOffCanvasForm::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides BlockForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/modules/outside_in/src/Block/BlockEntityOffCanvasForm.php, line 37 Class BlockEntityOffCanvasForm Provides form for block instance forms when used in the off-canvas tray. Namespace Drupal\outside_in\Block Code public function form

BlockEntityOffCanvasForm::submitVisibility

protected BlockEntityOffCanvasForm::submitVisibility(array $form, FormStateInterface $form_state) Helper function to independently submit the visibility UI. Parameters array $form: A nested array form elements comprising the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides BlockForm::submitVisibility File core/modules/outside_in/src/Block/BlockEntityOffCanvasForm.php, line 86 Class BlockEntityOffCanvasForm Provides form for block instance fo

BlockEntityOffCanvasForm

Provides form for block instance forms when used in the off-canvas tray. This form removes advanced sections of regular block form such as the visibility settings, machine ID and region. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass

BlockDeleteForm::getCancelUrl

public BlockDeleteForm::getCancelUrl() Returns the route to go to if the user cancels the action. Return value \Drupal\Core\Url A URL object. Overrides EntityDeleteFormTrait::getCancelUrl File core/modules/block/src/Form/BlockDeleteForm.php, line 16 Class BlockDeleteForm Provides a deletion confirmation form for the block instance deletion form. Namespace Drupal\block\Form Code public function getCancelUrl() { return new Url('block.admin_display'); }