public function Embed::syndicationDashboard in CMS Content Sync 2.1.x
Same name and namespace in other branches
- 2.0.x src/Controller/Embed.php \Drupal\cms_content_sync\Controller\Embed::syndicationDashboard()
1 string reference to 'Embed::syndicationDashboard'
File
- src/
Controller/ Embed.php, line 31
Class
- Embed
- Class Embed provides helpers to embed Sync Core functionality into the site.
Namespace
Drupal\cms_content_sync\ControllerCode
public function syndicationDashboard() {
$this
->init();
$request = \Drupal::request();
$embed = $this->embedService
->syndicationDashboard([
'selectedFlowMachineName' => isset($this->params['flow']) ? $this->params['flow'] : null,
'startNew' => isset($this->params['startNew']) ? $this->params['startNew'] === 'true' : false,
]);
return $this
->run($embed, DrupalApplication::get()
->getSiteUuid() ? [
'form' => \Drupal::formBuilder()
->getForm(MigrationForm::class),
] : []);
}