You are here

public function RabbitHoleBehaviorPluginBase::settingsForm in Rabbit Hole 8

Same name and namespace in other branches
  1. 2.x src/Plugin/RabbitHoleBehaviorPluginBase.php \Drupal\rabbit_hole\Plugin\RabbitHoleBehaviorPluginBase::settingsForm()

Return a settings form for the rabbit hole action.

Parameters

array &$form: The form array to modify.

\Drupal\Core\Form\FormStateInterface $form_state: The form state object.

string $form_id: The form ID.

\Drupal\Core\Entity\EntityInterface|null $entity: The entity used by the form.

bool $entity_is_bundle: Whether the entity is a bundle.

\Drupal\Core\Config\ImmutableConfig|null $bundle_settings: The behavior settings for the bundle of the entity (or the entity itself, if it is a bundle).

Overrides RabbitHoleBehaviorPluginInterface::settingsForm

1 method overrides RabbitHoleBehaviorPluginBase::settingsForm()
PageRedirect::settingsForm in src/Plugin/RabbitHoleBehaviorPlugin/PageRedirect.php
Return a settings form for the rabbit hole action.

File

src/Plugin/RabbitHoleBehaviorPluginBase.php, line 25

Class

RabbitHoleBehaviorPluginBase
Base class for Rabbit hole behavior plugin plugins.

Namespace

Drupal\rabbit_hole\Plugin

Code

public function settingsForm(array &$form, FormStateInterface $form_state, $form_id, EntityInterface $entity = NULL, $entity_is_bundle = FALSE, ImmutableConfig $bundle_settings = NULL) {

  // Present no settings form.
}