Commit cd342d55 authored by RenatoG's avatar RenatoG Committed by RenatoG
Browse files

Issue #2907613 by RenatoG: Fix Drupal Code Sniffer for XML sitemap custom

parent 106b3517
......@@ -72,7 +72,11 @@ class XmlSitemapCustomListController extends ControllerBase {
'#type' => 'table',
'#header' => $header,
'#rows' => $rows,
'#empty' => $this->t('No custom links available. <a href="@custom_link">Add custom link</a>', ['@custom_link' => Url::fromRoute('xmlsitemap_custom.add', [], ['query' => $this->getDestinationArray()])->toString()]),
'#empty' => $this->t('No custom links available. <a href="@custom_link">Add custom link</a>', [
'@custom_link' => Url::fromRoute('xmlsitemap_custom.add', [], [
'query' => $this->getDestinationArray(),
])->toString(),
]),
];
$build['xmlsitemap_custom_pager'] = ['#type' => 'pager'];
......
......@@ -25,6 +25,8 @@ class XmlSitemapCustomDeleteForm extends ConfirmFormBase {
* The path of the custom link.
*
* @var string
*
* @codingStandardsIgnoreStart
*/
protected $custom_link;
......@@ -33,6 +35,8 @@ class XmlSitemapCustomDeleteForm extends ConfirmFormBase {
*
* @param \Drupal\xmlsitemap\XmlSitemapLinkStorageInterface $link_storage
* The xmlsitemap link storage service.
*
* @codingStandardsIgnoreEnd
*/
public function __construct(XmlSitemapLinkStorageInterface $link_storage) {
$this->linkStorage = $link_storage;
......
......@@ -23,6 +23,8 @@ class XmlSitemapCustomEditForm extends FormBase {
* The path of the custom link.
*
* @var string
*
* @codingStandardsIgnoreStart
*/
protected $custom_link;
......@@ -30,6 +32,8 @@ class XmlSitemapCustomEditForm extends FormBase {
* The language manager.
*
* @var \Drupal\language\ConfigurableLanguageManagerInterface
*
* @codingStandardsIgnoreEnd
*/
protected $languageManager;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment