final class InstagramEmbedCodeConstraint in Lightning Media 8.4
Same name and namespace in other branches
- 8.3 modules/lightning_media_instagram/src/Plugin/Validation/Constraint/InstagramEmbedCodeConstraint.php \Drupal\lightning_media_instagram\Plugin\Validation\Constraint\InstagramEmbedCodeConstraint
Check if a value is a valid Instagram embed code/URL.
@internal This is a totally internal part of Lightning Media Instagram and may be changed or removed in any way, at any time, without warning. External code should not use this class. If you need to use it or modify it, please copy it into your own project.
Plugin annotation
@Constraint(
id = "InstagramEmbedCode",
label = @Translation("Instagram embed code", context = "Validation"),
type = { "link", "string", "string_long" }
)
Hierarchy
- class \Drupal\lightning_media_instagram\Plugin\Validation\Constraint\InstagramEmbedCodeConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of InstagramEmbedCodeConstraint
File
- modules/
lightning_media_instagram/ src/ Plugin/ Validation/ Constraint/ InstagramEmbedCodeConstraint.php, line 22
Namespace
Drupal\lightning_media_instagram\Plugin\Validation\ConstraintView source
final class InstagramEmbedCodeConstraint extends Constraint {
/**
* The default violation message.
*
* @var string
*/
public $message = 'Not valid Instagram URL/Embed code.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
InstagramEmbedCodeConstraint:: |
public | property | The default violation message. |