function MediaSourceEntityConstraintsInterface::getEntityConstraints
Same name in other branches
- 9 core/modules/media/src/MediaSourceEntityConstraintsInterface.php \Drupal\media\MediaSourceEntityConstraintsInterface::getEntityConstraints()
- 8.9.x core/modules/media/src/MediaSourceEntityConstraintsInterface.php \Drupal\media\MediaSourceEntityConstraintsInterface::getEntityConstraints()
- 10 core/modules/media/src/MediaSourceEntityConstraintsInterface.php \Drupal\media\MediaSourceEntityConstraintsInterface::getEntityConstraints()
Gets media source-specific validation constraints for a media item.
Return value
\Symfony\Component\Validator\Constraint[] An array of validation constraint definitions, keyed by plugin IDs. The corresponding values are options for each validation plugin. Each constraint definition can be used for instantiating \Symfony\Component\Validator\Constraint objects.
1 method overrides MediaSourceEntityConstraintsInterface::getEntityConstraints()
- TestWithConstraints::getEntityConstraints in core/
modules/ media/ tests/ modules/ media_test_source/ src/ Plugin/ media/ Source/ TestWithConstraints.php
File
-
core/
modules/ media/ src/ MediaSourceEntityConstraintsInterface.php, line 28
Class
- MediaSourceEntityConstraintsInterface
- Defines an interface for a media source with entity constraints.
Namespace
Drupal\mediaCode
public function getEntityConstraints();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.