You are here

Compatibility.php in CMS Content Sync 2.0.x

Same filename and directory in other branches
  1. 2.1.x src/Controller/Compatibility.php

File

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

namespace Drupal\cms_content_sync\Controller;

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

/**
 * Class Compatibility provides details about entity types and field types used on this site
 * and whether or not we support them.
 */
class Compatibility extends ControllerBase {

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

}

Classes

Namesort descending Description
Compatibility Class Compatibility provides details about entity types and field types used on this site and whether or not we support them.