You are here

public function ImportPartialForm::importContent in Tome 8

Batch callback to import content or add a content translation.

Parameters

string $name: A content name.

File

modules/tome_sync/src/Form/ImportPartialForm.php, line 285

Class

ImportPartialForm
Contains a form for performing a partial import.

Namespace

Drupal\tome_sync\Form

Code

public function importContent($name) {
  list($entity_type_id, $uuid, $langcode) = TomeSyncHelper::getPartsFromContentName($name);
  $this->importer
    ->importContent($entity_type_id, $uuid, $langcode);
}