You are here

public function Embed::syndicationDashboard in CMS Content Sync 2.1.x

Same name and namespace in other branches
  1. 2.0.x src/Controller/Embed.php \Drupal\cms_content_sync\Controller\Embed::syndicationDashboard()
1 string reference to 'Embed::syndicationDashboard'
cms_content_sync.routing.yml in ./cms_content_sync.routing.yml
cms_content_sync.routing.yml

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\Controller

Code

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),
  ] : []);
}