You are here

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

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

Create a sitemap link from an entity.

The link will be saved as $entity->xmlsitemap.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity whose sitemap link will be created.

1 method overrides XmlSitemapLinkStorageInterface::create()
XmlSitemapLinkStorage::create in src/XmlSitemapLinkStorage.php
Create a sitemap link from an entity.

File

src/XmlSitemapLinkStorageInterface.php, line 20

Class

XmlSitemapLinkStorageInterface
Provides an interface defining a XmlSitemapLinkStorage service.

Namespace

Drupal\xmlsitemap

Code

public function create(EntityInterface $entity);