You are here

protected function BlockFieldBlockContentImporter::importUrl in Entity Share 8.3

Helper function.

Parameters

\Drupal\entity_share_client\RuntimeImportContext $runtime_import_context: The runtime import context.

string $url: The URL to import.

Return value

array The list of entity IDs imported keyed by UUIDs.

Overrides EntityReference::importUrl

1 call to BlockFieldBlockContentImporter::importUrl()
BlockFieldBlockContentImporter::prepareImportableEntityData in modules/entity_share_client/src/Plugin/EntityShareClient/Processor/BlockFieldBlockContentImporter.php
Method called on STAGE_PREPARE_IMPORTABLE_ENTITY_DATA.

File

modules/entity_share_client/src/Plugin/EntityShareClient/Processor/BlockFieldBlockContentImporter.php, line 54

Class

BlockFieldBlockContentImporter
Import block contents from block fields.

Namespace

Drupal\entity_share_client\Plugin\EntityShareClient\Processor

Code

protected function importUrl(RuntimeImportContext $runtime_import_context, $url) {

  // In the case of block field, if the block content entity is already
  // present on the website, there is nothing to do.
  if ($this->currentRecursionDepth == $this->configuration['max_recursion_depth']) {
    return [];
  }
  return parent::importUrl($runtime_import_context, $url);
}