public static function MapperHelper::getInfo in Feeds Paragraphs 8
Parameters
mixed $targetDefinition:
string $property:
Return value
mixed
File
- src/
Utility/ MapperHelper.php, line 243
Class
Namespace
Drupal\feeds_para_mapper\UtilityCode
public static function getInfo($targetDefinition, $property) {
$field = $targetDefinition;
if ($targetDefinition instanceof FieldTargetDefinition) {
$field = $targetDefinition
->getFieldDefinition();
}
$info = $field
->get('target_info');
return $info->{$property};
}