You are here

public static function Heartbeat::createHeartbeatMedia in Heartbeat 8

1 call to Heartbeat::createHeartbeatMedia()
Heartbeat::mediaFieldTypes in src/Entity/Heartbeat.php
Returns all media types for an array of fields

File

src/Entity/Heartbeat.php, line 790

Class

Heartbeat

Namespace

Drupal\heartbeat\Entity

Code

public static function createHeartbeatMedia($type, $path) {
  $mediaObject = new \stdClass();
  $mediaObject->type = $type;
  $mediaObject->path = $path;
  return $mediaObject;
}