You are here

public function SimpleSitemapViews::getArgumentsStringVariations in Simple XML sitemap 4.x

Same name and namespace in other branches
  1. 8.3 modules/simple_sitemap_views/src/SimpleSitemapViews.php \Drupal\simple_sitemap_views\SimpleSitemapViews::getArgumentsStringVariations()

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

modules/simple_sitemap_views/src/SimpleSitemapViews.php, line 567

Class

SimpleSitemapViews
Class to manage sitemap data for views.

Namespace

Drupal\simple_sitemap_views

Code

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