You are here

public function SimpleSitemapViews::getArgumentsStringVariations in Simple XML sitemap (Views integration) 8

Get variations for string representation of arguments.

Parameters

array $args: Array of arguments.

Return value

array Array of variations of the string representation of arguments.

File

src/SimpleSitemapViews.php, line 311
Contains simple_sitemap_views service.

Class

SimpleSitemapViews
Class to manage sitemap data for views.

Namespace

Drupal\simple_sitemap_views

Code

public function getArgumentsStringVariations(array $args) {
  $variations = [];
  for ($length = 1; $length <= count($args); $length++) {
    $args_slice = array_slice($args, 0, $length);
    $variations[] = $this
      ->convertArgumentsArrayToString($args_slice);
  }
  return $variations;
}