public function Mapper::getInfo in Feeds Paragraphs 8
Parameters
FieldDefinitionInterface $field:
string $property:
Return value
mixed
File
- src/
Mapper.php, line 238
Class
Namespace
Drupal\feeds_para_mapperCode
public function getInfo(FieldDefinitionInterface $field, $property) {
$info = $field
->get('target_info');
if (!isset($info)) {
$info = new TargetInfo();
}
$res = null;
if (property_exists(TargetInfo::class, $property)) {
$res = $info->{$property};
}
return $res;
}