class GalleryMediaBundleConstraint in D7 Media 8
Check that there is no Gallery type item in slideshow items.
Plugin annotation
@Constraint(
id = "GalleryMediaBundle",
label = @Translation("Gallery media bundle", context = "Validation"),
)
Hierarchy
- class \Drupal\media\Plugin\Validation\Constraint\GalleryMediaBundleConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of GalleryMediaBundleConstraint
File
- src/
Plugin/ Validation/ Constraint/ GalleryMediaBundleConstraint.php, line 15
Namespace
Drupal\media\Plugin\Validation\ConstraintView source
class GalleryMediaBundleConstraint extends Constraint {
/**
* Name of the source field for slideshow bundle.
*
* @var string
*/
public $sourceFieldName;
/**
* The default violation message.
*
* @var string
*/
public $message = 'Gallery cannot contain gallery type item.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
GalleryMediaBundleConstraint:: |
public | property | The default violation message. | |
GalleryMediaBundleConstraint:: |
public | property | Name of the source field for slideshow bundle. |