You are here

Introduction.php in CMS Content Sync 8

File

src/Controller/Introduction.php
View source
<?php

namespace Drupal\cms_content_sync\Controller;

use Drupal\cms_content_sync\Plugin\Type\EntityHandlerPluginManager;
use Drupal\Core\Controller\ControllerBase;

/**
 * Class Introduction provides a static page describing how
 * Content Sync can be used.
 */
class Introduction extends ControllerBase {

  /**
   * @return array the content array to theme the introduction
   */
  public function content() {
    return [
      '#supported_entity_types' => EntityHandlerPluginManager::getEntityTypes(),
      '#theme' => 'cms_content_sync_introduction',
    ];
  }

}

Classes

Namesort descending Description
Introduction Class Introduction provides a static page describing how Content Sync can be used.