
| Current Path : /var/www/html_old/abg/web/core/modules/media/src/ |
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_old/abg/web/core/modules/media/src/MediaSourceFieldConstraintsInterface.php |
<?php
namespace Drupal\media;
/**
* Defines an interface for a media source with source field constraints.
*
* This allows a media source to optionally add source field validation
* constraints for media items. To add constraints at the entity level, a
* media source can also implement MediaSourceEntityConstraintsInterface.
*
* @see \Drupal\media\MediaSourceInterface
* @see \Drupal\media\MediaSourceEntityConstraintsInterface
* @see \Drupal\media\MediaSourceBase
* @see \Drupal\media\Entity\Media
*/
interface MediaSourceFieldConstraintsInterface extends MediaSourceInterface {
/**
* Gets media source-specific validation constraints for a source field.
*
* @return \Symfony\Component\Validator\Constraint[]
* An array of validation constraint definitions, keyed by constraint name.
* Each constraint definition can be used for instantiating
* \Symfony\Component\Validator\Constraint objects.
*/
public function getSourceFieldConstraints();
}