You are here

public function Mapper::getInfo in Feeds Paragraphs 8

Parameters

FieldDefinitionInterface $field:

string $property:

Return value

mixed

File

src/Mapper.php, line 238

Class

Mapper

Namespace

Drupal\feeds_para_mapper

Code

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;
}