You are here

public function EntityReferenceFieldItemListProcessor::addDependencie in Content Synchronizer 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/content_synchronizer/type_processor/EntityReferenceFieldItemListProcessor.php \Drupal\content_synchronizer\Plugin\content_synchronizer\type_processor\EntityReferenceFieldItemListProcessor::addDependencie()
  2. 3.x src/Plugin/content_synchronizer/type_processor/EntityReferenceFieldItemListProcessor.php \Drupal\content_synchronizer\Plugin\content_synchronizer\type_processor\EntityReferenceFieldItemListProcessor::addDependencie()

Add dependencies to importing data.

Parameters

string $gid: The gid.

\Drupal\Core\Field\EntityReferenceFieldItemList $field: The field.

int $order: The order.

1 call to EntityReferenceFieldItemListProcessor::addDependencie()
EntityReferenceFieldItemListProcessor::initImportedEntity in src/Plugin/content_synchronizer/type_processor/EntityReferenceFieldItemListProcessor.php
Init the $propertyId value in the entity to import.

File

src/Plugin/content_synchronizer/type_processor/EntityReferenceFieldItemListProcessor.php, line 133

Class

EntityReferenceFieldItemListProcessor
Plugin implementation For the type processor .

Namespace

Drupal\content_synchronizer\Plugin\content_synchronizer\type_processor

Code

public function addDependencie($gid, EntityReferenceFieldItemList $field, $order) {
  self::$dependenciesBuffer[$gid][] = [
    'field' => $field,
    'order' => $order,
  ];
}