
| Current Path : /var/www/html/sirius-pallets/web/core/lib/Drupal/Core/Form/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/sirius-pallets/web/core/lib/Drupal/Core/Form/WorkspaceDynamicSafeFormInterface.php |
<?php
declare(strict_types=1);
namespace Drupal\Core\Form;
/**
* Defines an interface for forms that can be workspace-safe.
*
* This interface should be used by forms that have to determine whether they're
* workspace-safe based on dynamic criteria.
*
* @see \Drupal\Core\Form\WorkspaceSafeFormInterface
*/
interface WorkspaceDynamicSafeFormInterface {
/**
* Determines whether the form is safe to be submitted in a workspace.
*
* @param array $form
* An associative array containing the structure of the form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
*
* @return bool
* TRUE if the form is workspace-safe, FALSE otherwise.
*/
public function isWorkspaceSafeForm(array $form, FormStateInterface $form_state): bool;
}