public function XmlSitemapLinkStorageInterface::create in XML sitemap 8
Same name and namespace in other branches
- 2.x 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\xmlsitemapCode
public function create(EntityInterface $entity);