You are here

public static function MapperHelper::updateInfo in Feeds Paragraphs 8

Updates the target field info.

Parameters

FieldConfigInterface $field:

$property:

$value:

2 calls to MapperHelper::updateInfo()
MapperHelper::getSubFields in src/Utility/MapperHelper.php
MapperHelper::getTargets in src/Utility/MapperHelper.php

File

src/Utility/MapperHelper.php, line 228

Class

MapperHelper

Namespace

Drupal\feeds_para_mapper\Utility

Code

public static function updateInfo(FieldConfigInterface $field, $property, $value) {
  $info = $field
    ->get('target_info');
  if (!isset($info)) {
    $info = new TargetInfo();
  }
  $info->{$property} = $value;
  $field
    ->set('target_info', $info);
}