You are here

public function Simplesitemap::getCustomLink in Simple XML sitemap 8.2

Returns settings for a custom path added to the sitemap settings.

Parameters

string $path:

Return value

array|false

File

src/Simplesitemap.php, line 674

Class

Simplesitemap
Class Simplesitemap @package Drupal\simple_sitemap

Namespace

Drupal\simple_sitemap

Code

public function getCustomLink($path) {
  foreach ($this
    ->getCustomLinks() as $key => $link) {
    if ($link['path'] === $path) {
      return $link;
    }
  }
  return FALSE;
}