public function ParagraphsBehaviorInterface::validateBehaviorForm in Paragraphs 8
Validates the behavior fields form.
This method is responsible for validating the data in the behavior fields form and displaying validation messages.
Parameters
\Drupal\paragraphs\ParagraphInterface $paragraph: The paragraph.
array $form: An associative array containing the initial structure of the plugin form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
1 method overrides ParagraphsBehaviorInterface::validateBehaviorForm()
- ParagraphsBehaviorBase::validateBehaviorForm in src/
ParagraphsBehaviorBase.php - Validates the behavior fields form.
File
- src/
ParagraphsBehaviorInterface.php, line 53
Class
- ParagraphsBehaviorInterface
- Provides an interface defining a paragraph behavior.
Namespace
Drupal\paragraphsCode
public function validateBehaviorForm(ParagraphInterface $paragraph, array &$form, FormStateInterface $form_state);