You are here

public function MediaTypeBase::attachConstraints in Media entity 8

Attaches type-specific constraints to media.

Parameters

MediaInterface $media: Media entity.

Overrides MediaTypeInterface::attachConstraints

File

src/MediaTypeBase.php, line 128

Class

MediaTypeBase
Base implementation of media type plugin.

Namespace

Drupal\media_entity

Code

public function attachConstraints(MediaInterface $media) {
}