You are here

ConfigDistroIgnoreController.php in Config Distro 8

File

modules/config_distro_ignore/src/Controller/ConfigDistroIgnoreController.php
View source
<?php

namespace Drupal\config_distro_ignore\Controller;

use Drupal\config\Controller\ConfigController;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Drupal\Core\Url;
use Symfony\Component\DependencyInjection\ContainerInterface;

/**
 * Returns responses for config module routes.
 */
class ConfigDistroIgnoreController implements ContainerInjectionInterface {

  /**
   * {@inheritdoc}
   */
  public static function create(ContainerInterface $container) {
  }

  /**
   * {@inheritdoc}
   */
  public function diff($source_name, $target_name = NULL, $collection = NULL) {
    $build = parent::diff($source_name, $target_name = NULL, $collection = NULL);
    $build['back']['#url'] = Url::fromRoute('config_distro.import');
    return $build;
  }

}

Classes

Namesort descending Description
ConfigDistroIgnoreController Returns responses for config module routes.