You are here

public function XmlSitemapCustomAddForm::__construct in XML sitemap 2.x

Same name and namespace in other branches
  1. 8 xmlsitemap_custom/src/Form/XmlSitemapCustomAddForm.php \Drupal\xmlsitemap_custom\Form\XmlSitemapCustomAddForm::__construct()

Constructs a new XmlSitemapCustomAddForm object.

Parameters

\Drupal\Core\Database\Connection $connection: The database connection.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager service.

\Drupal\path_alias\AliasManagerInterface $alias_manager: The path alias manager service.

\Drupal\Core\Http\ClientFactory $http_client_factory: A Guzzle client object.

\Drupal\xmlsitemap\XmlSitemapLinkStorageInterface $link_storage: The xmlsitemap link storage service.

File

xmlsitemap_custom/src/Form/XmlSitemapCustomAddForm.php, line 70

Class

XmlSitemapCustomAddForm
Provides a form for adding a custom link.

Namespace

Drupal\xmlsitemap_custom\Form

Code

public function __construct(Connection $connection, LanguageManagerInterface $language_manager, AliasManagerInterface $alias_manager, ClientFactory $http_client_factory, XmlSitemapLinkStorageInterface $link_storage) {
  $this->connection = $connection;
  $this->languageManager = $language_manager;
  $this->aliasManager = $alias_manager;
  $this->httpClientFactory = $http_client_factory;
  $this->linkStorage = $link_storage;
}