core/modules/media/src/Plugin/MediaStorageProxy/File.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/modules/media/src/Plugin/MediaStorageProxy/File.php b/core/modules/media/src/Plugin/MediaStorageProxy/File.php index 83943cc..b6215c7 100644 --- a/core/modules/media/src/Plugin/MediaStorageProxy/File.php +++ b/core/modules/media/src/Plugin/MediaStorageProxy/File.php @@ -22,17 +22,17 @@ class File extends MediaStorageProxyBase { /** * {@inheritdoc} */ - public function getProvidedFields() { + public function getMetadataLabels() { return [ - 'mime' => ['label' => $this->t('MIME type')], - 'size' => ['label' => $this->t('Size')], + 'mime' => $this->t('MIME type'), + 'size' => $this->t('Size'), ]; } /** * {@inheritdoc} */ - public function getField(MediaInterface $media, $name) { + public function getMetadata(MediaInterface $media, $name) { $file = $this->getSourceFile($media); switch ($name) {