interface ExpressionFormInterface

Defines methods for expression forms.

Hierarchy

Expanded class hierarchy of ExpressionFormInterface

All classes that implement ExpressionFormInterface

File

src/Form/Expression/ExpressionFormInterface.php, line 10

Namespace

Drupal\rules\Form\Expression
View source
interface ExpressionFormInterface {
    
    /**
     * Adds elements specific to the expression to the form.
     *
     * @param array $form
     *   The form array.
     * @param \Drupal\Core\Form\FormStateInterface $form_state
     *   The current form state.
     */
    public function form(array $form, FormStateInterface $form_state);
    
    /**
     * Form validation callback to validate expression elements.
     *
     * @param array $form
     *   The form array.
     * @param \Drupal\Core\Form\FormStateInterface $form_state
     *   The current form state.
     */
    public function validateForm(array $form, FormStateInterface $form_state);
    
    /**
     * Form submission callback to save changes for the expression.
     *
     * @param array $form
     *   The form array.
     * @param \Drupal\Core\Form\FormStateInterface $form_state
     *   The current form state.
     */
    public function submitForm(array &$form, FormStateInterface $form_state);

}

Members

Title Sort descending Modifiers Object type Summary Overrides
ExpressionFormInterface::form public function Adds elements specific to the expression to the form. 5
ExpressionFormInterface::submitForm public function Form submission callback to save changes for the expression. 2
ExpressionFormInterface::validateForm public function Form validation callback to validate expression elements. 2