
| Current Path : /var/www/html1/testsite/web/modules/contrib/simple_sitemap/src/Form/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html1/testsite/web/modules/contrib/simple_sitemap/src/Form/SimplesitemapFormBase.php |
<?php
namespace Drupal\simple_sitemap\Form;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\simple_sitemap\Simplesitemap;
/**
* Class SimplesitemapFormBase
* @package Drupal\simple_sitemap\Form
*/
abstract class SimplesitemapFormBase extends ConfigFormBase {
/**
* @var \Drupal\simple_sitemap\Simplesitemap
*/
protected $generator;
/**
* @var \Drupal\simple_sitemap\Form\FormHelper
*/
protected $formHelper;
/**
* SimplesitemapFormBase constructor.
* @param \Drupal\simple_sitemap\Simplesitemap $generator
* @param \Drupal\simple_sitemap\Form\FormHelper $form_helper
*/
public function __construct(
Simplesitemap $generator,
FormHelper $form_helper
) {
$this->generator = $generator;
$this->formHelper = $form_helper;
}
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
return new static(
$container->get('simple_sitemap.generator'),
$container->get('simple_sitemap.form_helper')
);
}
/**
* {@inheritdoc}
*/
protected function getEditableConfigNames() {
return ['simple_sitemap.settings'];
}
}