You are here

public function MediaTarget::defaultConfiguration in Media Feeds 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides EntityReference::defaultConfiguration

File

src/Feeds/Target/MediaTarget.php, line 368

Class

MediaTarget
Defines a wrapper target around a paragraph bundle's target field.

Namespace

Drupal\media_feeds\Feeds\Target

Code

public function defaultConfiguration() {
  if ($this->isMedia) {
    $config = $this->targetInstance
      ->defaultConfiguration();
    return $config;
  }
  else {
    return parent::defaultConfiguration();
  }
}