This repository was archived by the owner on Jan 5, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathMediaBundleInterface.php
99 lines (85 loc) · 2.18 KB
/
MediaBundleInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php
namespace Drupal\media_entity;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
use Drupal\entity\Entity\RevisionableEntityBundleInterface;
/**
* Provides an interface defining a media bundle entity.
*/
interface MediaBundleInterface extends ConfigEntityInterface, RevisionableEntityBundleInterface {
/**
* Returns the label.
*
* @param \Drupal\media_entity\MediaInterface $media
* The Media entity.
*
* @return string|bool
* Returns the label of the bundle that entity belongs to.
*/
public static function getLabel(MediaInterface $media);
/**
* Checks if the bundle exists.
*
* @param int $id
* The Media bundle ID.
*
* @return bool
* TRUE if the bundle with the given ID exists, FALSE otherwise.
*/
public static function exists($id);
/**
* Returns whether thumbnail downloads are queued.
*
* @return bool
* Returns download now or later.
*/
public function getQueueThumbnailDownloads();
/**
* Sets a flag to indicate that thumbnails should be downloaded via a queue.
*
* @param bool $queue_thumbnail_downloads
* The queue downloads flag.
*/
public function setQueueThumbnailDownloads($queue_thumbnail_downloads);
/**
* Returns the Media bundle description.
*
* @return string
* Returns the Media bundle description.
*/
public function getDescription();
/**
* Returns the media type plugin.
*
* @return \Drupal\media_entity\MediaTypeInterface
* The type.
*/
public function getType();
/**
* Returns the media type configuration.
*
* @return array
* The type configuration.
*/
public function getTypeConfiguration();
/**
* Sets the media type configuration.
*
* @param array $configuration
* The type configuration.
*/
public function setTypeConfiguration($configuration);
/**
* Returns the media type status.
*
* @return bool
* The status.
*/
public function getStatus();
/**
* Sets whether a new revision should be created by default.
*
* @param bool $new_revision
* TRUE if a new revision should be created by default.
*/
public function setNewRevision($new_revision);
}