You are here

public function XmlSitemapLinkStorageInterface::delete in XML sitemap 8

Same name and namespace in other branches
  1. 2.x src/XmlSitemapLinkStorageInterface.php \Drupal\xmlsitemap\XmlSitemapLinkStorageInterface::delete()

Delete a specific sitemap link from the database.

If a visible sitemap link was deleted, this will automatically set the regenerate needed flag.

Parameters

string $entity_type: A string with the entity type.

string $entity_id: Entity ID to be deleted.

string $langcode: (optional) The language code for the link that should be deleted. If omitted, links for that entity will be removed in all languages.

Return value

int The number of links that were deleted.

1 method overrides XmlSitemapLinkStorageInterface::delete()
XmlSitemapLinkStorage::delete in src/XmlSitemapLinkStorage.php
Delete a specific sitemap link from the database.

File

src/XmlSitemapLinkStorageInterface.php, line 81

Class

XmlSitemapLinkStorageInterface
Provides an interface defining a XmlSitemapLinkStorage service.

Namespace

Drupal\xmlsitemap

Code

public function delete($entity_type, $entity_id, $langcode = NULL);