$this->sourcePluginCollection(), ]; } /** * {@inheritdoc} */ public function getDescription() { return $this->description; } /** * {@inheritdoc} */ public function setDescription($description) { return $this->set('description', $description); } /** * {@inheritdoc} */ public function thumbnailDownloadsAreQueued() { return $this->queue_thumbnail_downloads; } /** * {@inheritdoc} */ public function setQueueThumbnailDownloadsStatus($queue_thumbnail_downloads) { return $this->set('queue_thumbnail_downloads', $queue_thumbnail_downloads); } /** * {@inheritdoc} */ public function getSource() { return $this->sourcePluginCollection()->get($this->source); } /** * Returns media source lazy plugin collection. * * @return \Drupal\Core\Plugin\DefaultSingleLazyPluginCollection|null * The tag plugin collection or NULL if the plugin ID was not set yet. */ protected function sourcePluginCollection() { if (!$this->sourcePluginCollection && $this->source) { $this->sourcePluginCollection = new DefaultSingleLazyPluginCollection(\Drupal::service('plugin.manager.media.source'), $this->source, $this->source_configuration); } return $this->sourcePluginCollection; } /** * {@inheritdoc} */ public function getStatus() { return $this->status; } /** * {@inheritdoc} */ public function shouldCreateNewRevision() { return $this->new_revision; } /** * {@inheritdoc} */ public function setNewRevision($new_revision) { return $this->set('new_revision', $new_revision); } /** * {@inheritdoc} */ public function getFieldMap() { return $this->field_map; } /** * {@inheritdoc} */ public function setFieldMap(array $map) { return $this->set('field_map', $map); } }