You are here

LingotekConfigFormBase.php in Lingotek Translation 8

File

src/Form/LingotekConfigFormBase.php
View source
<?php

/**
 * @file
 * Contains \Drupal\lingotek\Form\LingotekConfigFormBase.
 */
namespace Drupal\lingotek\Form;

use Drupal\lingotek\LingotekInterface;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Form\ConfigFormBase;
use Symfony\Component\DependencyInjection\ContainerInterface;

/**
 * Configure Lingotek
 */
abstract class LingotekConfigFormBase extends ConfigFormBase {

  /**
   * Constructs a \Drupal\lingotek\Form\LingotekConfigFormBase object.
   *
   * @param \Drupal\lingotek\LingotekInterface $lingotek
   * @param \Drupal\Core\Config\ConfigFactoryInterface $config
   *   The factory for configuration objects.
   */
  public function __construct(LingotekInterface $lingotek, ConfigFactoryInterface $config) {
    $this->lingotek = $lingotek;
    parent::__construct($config);
  }

  /**
   * {@inheritdoc}
   */
  public static function create(ContainerInterface $container) {
    return new static($container
      ->get('lingotek'), $container
      ->get('config.factory'));
  }
  public function getEditableConfigNames() {
    return [];
  }

}

Classes

Namesort descending Description
LingotekConfigFormBase Configure Lingotek