You are here

public function WidgetValidationInterface::validate in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 src/WidgetValidationInterface.php \Drupal\entity_browser\WidgetValidationInterface::validate()

Validates the widget.

Parameters

array $entities: Array of selected entities.

array $options: (Optional) Array of options needed by the constraint validator.

Return value

\Symfony\Component\Validator\ConstraintViolationListInterface A list of constraint violations. If the list is empty, validation succeeded.

1 method overrides WidgetValidationInterface::validate()
WidgetValidationBase::validate in src/WidgetValidationBase.php
Validates the widget.

File

src/WidgetValidationInterface.php, line 34

Class

WidgetValidationInterface
Defines the interface for entity browser widget validations.

Namespace

Drupal\entity_browser

Code

public function validate(array $entities, array $options = []);