diff -u b/core/modules/media/media.install b/core/modules/media/media.install --- b/core/modules/media/media.install +++ b/core/modules/media/media.install @@ -185,7 +185,7 @@ /** * Change entity reference fields targeting media to use the 'media' field type. */ -function media_update_8800() { +function media_update_9200() { $configFactory = \Drupal::configFactory(); $changed_fields = []; diff -u b/core/modules/media/src/ReadOnlyMedia.php b/core/modules/media/src/ReadOnlyMedia.php --- b/core/modules/media/src/ReadOnlyMedia.php +++ b/core/modules/media/src/ReadOnlyMedia.php @@ -65,7 +65,7 @@ } /** - * {@inheritdoc} + * Implements the magic method for getting object properties. */ public function &__get($name) { $var = $this->get($name); @@ -200,32 +200,11 @@ /** * {@inheritdoc} */ - public function urlInfo($rel = 'canonical', array $options = []) { - return $this->media->urlInfo($rel, $options); - } - - /** - * {@inheritdoc} - */ public function toUrl($rel = 'canonical', array $options = []) { return $this->media->toUrl($rel, $options); } /** - * {@inheritdoc} - */ - public function url($rel = 'canonical', $options = []) { - return $this->media->url($rel, $options); - } - - /** - * {@inheritdoc} - */ - public function link($text = NULL, $rel = 'canonical', array $options = []) { - return $this->media->link($text, $rel, $options); - } - - /** * {@inheritdoc} */ public function toLink($text = NULL, $rel = 'canonical', array $options = []) {