You are here

public function DropzoneMediaEntityCreateEvent::setMediaEntity in DropzoneJS 8

Same name and namespace in other branches
  1. 8.2 src/Events/DropzoneMediaEntityCreateEvent.php \Drupal\dropzonejs\Events\DropzoneMediaEntityCreateEvent::setMediaEntity()

Set the media entity.

Parameters

\Drupal\media_entity\MediaInterface $media_entity: The updated media entity.

File

src/Events/DropzoneMediaEntityCreateEvent.php, line 88

Class

DropzoneMediaEntityCreateEvent
Represents Media Entity creation as an event when using DropzoneJS.

Namespace

Drupal\dropzonejs\Events

Code

public function setMediaEntity(MediaInterface $media_entity) {
  $this->mediaEntity = $media_entity;
}