Skip to content

Commit b592875

Browse files
committed
Adding getFilesCreated docs
1 parent c566226 commit b592875

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,20 @@ The two creation methods (`createSitemap` and `createSitemapIndex`) will return
148148
of the root sitemap file. If there is only 1 sitemap created, it will return just that URL.
149149
If multiple sitemaps are created, then a Sitemap Index is generated and the URL to that is returned.
150150

151+
### List of Created Files
152+
153+
You can get a list (array) of files the Factory has created by using the `getFilesCreated` method.
154+
155+
``` php
156+
$files = $sitemapFactory->getFilesCreated();
157+
```
158+
159+
### Return Value
160+
161+
The two creation methods (`createSitemap` and `createSitemapIndex`) will return the URL
162+
of the root sitemap file. If there is only 1 sitemap created, it will return just that URL.
163+
If multiple sitemaps are created, then a Sitemap Index is generated and the URL to that is returned.
164+
151165

152166
## Running Tests
153167

0 commit comments

Comments
 (0)