LingotekConfigFormBase.php in Lingotek Translation 3.6.x
Same filename and directory in other branches
- 8 src/Form/LingotekConfigFormBase.php
- 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.7.x src/Form/LingotekConfigFormBase.php
- 3.8.x src/Form/LingotekConfigFormBase.php
Namespace
Drupal\lingotek\FormFile
src/Form/LingotekConfigFormBase.phpView source
<?php
namespace Drupal\lingotek\Form;
use Drupal\Core\Routing\UrlGeneratorInterface;
use Drupal\Core\Utility\LinkGeneratorInterface;
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 {
/**
* @var \Drupal\lingotek\LingotekInterface
*/
protected $lingotek;
/**
* The URL generator.
*
* @var \Drupal\Core\Routing\UrlGeneratorInterface
*/
protected $urlGenerator;
/**
* The link generator.
*
* @var \Drupal\Core\Utility\LinkGeneratorInterface
*/
protected $linkGenerator;
/**
* Constructs a \Drupal\lingotek\Form\LingotekConfigFormBase object.
*
* @param \Drupal\lingotek\LingotekInterface $lingotek
* The lingotek service.
* @param \Drupal\Core\Config\ConfigFactoryInterface $config
* The factory for configuration objects.
* @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator
* The url generator.
* @param \Drupal\Core\Utility\LinkGeneratorInterface $link_generator
* The link generator.
*/
public function __construct(LingotekInterface $lingotek, ConfigFactoryInterface $config, UrlGeneratorInterface $url_generator, LinkGeneratorInterface $link_generator) {
parent::__construct($config);
$this->lingotek = $lingotek;
$this->urlGenerator = $url_generator;
$this->linkGenerator = $link_generator;
}
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
return new static($container
->get('lingotek'), $container
->get('config.factory'), $container
->get('url_generator'), $container
->get('link_generator'));
}
public function getEditableConfigNames() {
return [];
}
}
Classes
Name | Description |
---|---|
LingotekConfigFormBase | Configure Lingotek |