You are here

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

Same name and namespace in other branches
  1. 2.1.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 29

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();
  $embed = $this->embedService
    ->syndicationDashboard($this->params + [
    'selectedFlowMachineName' => \Drupal::request()->request
      ->get('flow'),
  ]);
  return $this
    ->run($embed, DrupalApplication::get()
    ->getSiteUuid() ? [
    'form' => \Drupal::formBuilder()
      ->getForm(MigrationForm::class),
  ] : []);
}