LingotekConfigFormBase.php in Lingotek Translation 8
Same filename and directory in other branches
- 8.2 src/Form/LingotekConfigFormBase.php
- 4.0.x src/Form/LingotekConfigFormBase.php
- 3.0.x src/Form/LingotekConfigFormBase.php
- 3.1.x src/Form/LingotekConfigFormBase.php
- 3.2.x src/Form/LingotekConfigFormBase.php
- 3.3.x src/Form/LingotekConfigFormBase.php
- 3.4.x src/Form/LingotekConfigFormBase.php
- 3.5.x src/Form/LingotekConfigFormBase.php
- 3.6.x src/Form/LingotekConfigFormBase.php
- 3.7.x src/Form/LingotekConfigFormBase.php
- 3.8.x src/Form/LingotekConfigFormBase.php
Namespace
Drupal\lingotek\FormFile
src/Form/LingotekConfigFormBase.phpView 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
Name![]() |
Description |
---|---|
LingotekConfigFormBase | Configure Lingotek |