You are here

public function SiteimproveUtils::getSiteimproveSettings in Siteimprove 8

Return siteimprove js settings.

Parameters

array $url: Urls to input or recheck.

string $type: Action: recheck_url|input_url.

bool $auto: Automatic calling to the defined method.

Return value

array JS settings.

File

src/SiteimproveUtils.php, line 177

Class

SiteimproveUtils
Utility functions for Siteimprove.

Namespace

Drupal\siteimprove

Code

public function getSiteimproveSettings(array $url, $type, $auto = TRUE) {
  return [
    'url' => $url,
    'auto' => $auto,
  ];
}