You are here

public function MediaTypeInterface::attachConstraints in Media entity 8

Attaches type-specific constraints to media.

Parameters

MediaInterface $media: Media entity.

1 method overrides MediaTypeInterface::attachConstraints()
MediaTypeBase::attachConstraints in src/MediaTypeBase.php
Attaches type-specific constraints to media.

File

src/MediaTypeInterface.php, line 49

Class

MediaTypeInterface
Defines the interface for media types.

Namespace

Drupal\media_entity

Code

public function attachConstraints(MediaInterface $media);