You are here

public function Import::import in Default Content 8

File

src/Import.php, line 19
Contains \Drupal\defaultcontent\Import.

Class

Import
Converts a node to a config entity

Namespace

Drupal\defaultcontent

Code

public function import($id) {
  $config_entity = DefaultContent::load($id);
  defaultcontent_import_one($config_entity);
  return $this
    ->redirect('entity.default_node.collection');
}