X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fmedia%2Fsrc%2FEntity%2FMediaType.php;h=3a5add6e5ca70c00b32d96fcfee6acfc7ffcd570;hb=4f1b9b4ab48a8498afac9e2213a02a23ccf4a06c;hp=43017b8a401402baf577f96cef795b5428a3bf20;hpb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;p=yaffs-website diff --git a/web/core/modules/media/src/Entity/MediaType.php b/web/core/modules/media/src/Entity/MediaType.php index 43017b8a4..3a5add6e5 100644 --- a/web/core/modules/media/src/Entity/MediaType.php +++ b/web/core/modules/media/src/Entity/MediaType.php @@ -21,6 +21,7 @@ use Drupal\media\MediaTypeInterface; * plural = "@count media types" * ), * handlers = { + * "access" = "Drupal\media\MediaTypeAccessControlHandler", * "form" = { * "add" = "Drupal\media\MediaTypeForm", * "edit" = "Drupal\media\MediaTypeForm", @@ -99,6 +100,8 @@ class MediaType extends ConfigEntityBundleBase implements MediaTypeInterface, En * Whether thumbnail downloads are queued. * * @var bool + * + * @see \Drupal\media\MediaTypeInterface::thumbnailDownloadsAreQueued() */ protected $queue_thumbnail_downloads = FALSE; @@ -112,7 +115,15 @@ class MediaType extends ConfigEntityBundleBase implements MediaTypeInterface, En /** * The media source configuration. * + * A media source can provide a configuration form with source plugin-specific + * configuration settings, which must at least include a source_field element + * containing a the name of the source field for the media type. The source + * configuration is defined by, and used to load, the source plugin. See + * \Drupal\media\MediaTypeInterface for an explanation of media sources. + * * @var array + * + * @see \Drupal\media\MediaTypeInterface::getSource() */ protected $source_configuration = []; @@ -124,9 +135,11 @@ class MediaType extends ConfigEntityBundleBase implements MediaTypeInterface, En protected $sourcePluginCollection; /** - * Field map. Fields provided by type plugin to be stored as entity fields. + * The metadata field map. * * @var array + * + * @see \Drupal\media\MediaTypeInterface::getFieldMap() */ protected $field_map = [];