You are here

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

MapperHelper

Namespace

Drupal\feeds_para_mapper\Utility

Code

public static function getInfo($targetDefinition, $property) {
  $field = $targetDefinition;
  if ($targetDefinition instanceof FieldTargetDefinition) {
    $field = $targetDefinition
      ->getFieldDefinition();
  }
  $info = $field
    ->get('target_info');
  return $info->{$property};
}