Commit 4a1621ca authored by gbyte.co's avatar gbyte.co Committed by gbyte.co

Fix wrong type in function signature

parent b76c9320
......@@ -451,9 +451,9 @@ abstract class UrlGeneratorBase extends SimplesitemapPluginBase implements UrlGe
/**
* Called by batch.
*
* @param array $data_sets
* @param mixed $data_sets
*/
public function generate(array $data_sets) {
public function generate($data_sets) {
foreach ($this->getBatchIterationElements($data_sets) as $id => $data_set) {
$this->setCurrentId($id);
$path_data = $this->processDataSet($data_set);
......
......@@ -8,7 +8,7 @@ namespace Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator;
*/
interface UrlGeneratorInterface {
public function generate(array $data_sets);
public function generate($data_sets);
public function getDataSets();
}
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