public function WrapperTarget::defaultConfiguration in Feeds Paragraphs 8
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides FieldTargetBase::defaultConfiguration
File
- src/
Feeds/ Target/ WrapperTarget.php, line 233
Class
- WrapperTarget
- Defines a wrapper target around a paragraph bundle's target field.
Namespace
Drupal\feeds_para_mapper\Feeds\TargetCode
public function defaultConfiguration() {
$mapper = $this
->getMapper();
$config = $this->targetInstance
->defaultConfiguration();
$has_settings = $mapper
->getInfo($this->field, 'has_settings');
if ($has_settings) {
$config['max_values'] = $mapper
->getMaxValues($this->field, $this->configuration);
}
return $config;
}