You are here

public function XmlSitemapLinkStorageInterface::checkChangedLink in XML sitemap 2.x

Same name and namespace in other branches
  1. 8 src/XmlSitemapLinkStorageInterface.php \Drupal\xmlsitemap\XmlSitemapLinkStorageInterface::checkChangedLink()

Check if there is sitemap link is changed from the existing data.

Parameters

array $link: An array of the sitemap link.

array $original_link: An optional array of the existing data. This should only contain the fields necessary for comparison. If not provided the existing data will be loaded from the database.

bool $flag: An optional boolean that if TRUE, will set the regenerate needed flag if there is a match. Defaults to FALSE.

Return value

bool TRUE if the link is changed, or FALSE otherwise.

1 method overrides XmlSitemapLinkStorageInterface::checkChangedLink()
XmlSitemapLinkStorage::checkChangedLink in src/XmlSitemapLinkStorage.php
Check if there is sitemap link is changed from the existing data.

File

src/XmlSitemapLinkStorageInterface.php, line 46

Class

XmlSitemapLinkStorageInterface
Provides an interface defining a XmlSitemapLinkStorage service.

Namespace

Drupal\xmlsitemap

Code

public function checkChangedLink(array $link, array $original_link = NULL, $flag = FALSE);