You are here

public function RabbitHoleBehaviorPluginInterface::settingsForm in Rabbit Hole 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/RabbitHoleBehaviorPluginInterface.php \Drupal\rabbit_hole\Plugin\RabbitHoleBehaviorPluginInterface::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).

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

File

src/Plugin/RabbitHoleBehaviorPluginInterface.php, line 44

Class

RabbitHoleBehaviorPluginInterface
Defines an interface 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);