You are here

public function Pinterest::getSourceFieldConstraints in Media entity Pinterest 8.2

Gets media source-specific validation constraints for a source field.

Return value

\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.

Overrides MediaSourceFieldConstraintsInterface::getSourceFieldConstraints

File

src/Plugin/media/Source/Pinterest.php, line 135

Class

Pinterest
Provides media type plugin for Pinterest.

Namespace

Drupal\media_entity_pinterest\Plugin\media\Source

Code

public function getSourceFieldConstraints() {
  return [
    'PinEmbedCode' => [],
  ];
}