You are here

public function ContentHubEntityImportController::importEntity in Acquia Content Hub 8

Imports a Content Hub Entity local site, given its UUID.

Parameters

string $uuid: The UUID of the Entity to save.

Return value

\Symfony\Component\HttpFoundation\JsonResponse A JSON Response.

1 string reference to 'ContentHubEntityImportController::importEntity'
acquia_contenthub.routing.yml in ./acquia_contenthub.routing.yml
acquia_contenthub.routing.yml

File

src/Controller/ContentHubEntityImportController.php, line 61

Class

ContentHubEntityImportController
Controller for Content Hub Imported Entities.

Namespace

Drupal\acquia_contenthub\Controller

Code

public function importEntity($uuid) {
  return $this->importEntityManager
    ->import($uuid);
}