Unverified Commit ce9808d0 authored by Dave Reid's avatar Dave Reid Committed by Dave Reid
Browse files

Issue #2989093 by vijaycs85, Dave Reid: Add config_export to config entity...

Issue #2989093 by vijaycs85, Dave Reid: Add config_export to config entity annotation to ensure state fields (i.e. updated) are not exported to config.
parent 2510b020
......@@ -10,27 +10,32 @@ use Drupal\xmlsitemap\XmlSitemapInterface;
*
* @ConfigEntityType(
* id = "xmlsitemap",
* label = @Translation("XmlSitemap"),
* label = @Translation("XML sitemap"),
* handlers = {
* "storage" = "Drupal\xmlsitemap\XmlSitemapStorage",
* "list_builder" = "Drupal\xmlsitemap\XmlSitemapListBuilder",
* "form" = {
* "add" = "Drupal\xmlsitemap\Form\XmlSitemapForm",
* "edit" = "Drupal\xmlsitemap\Form\XmlSitemapForm",
* "delete" = "Drupal\xmlsitemap\Form\XmlSitemapDeleteForm"
* }
* "delete" = "Drupal\xmlsitemap\Form\XmlSitemapDeleteForm",
* },
* },
* config_prefix = "xmlsitemap",
* admin_permission = "administer site configuration",
* entity_keys = {
* "id" = "id",
* "uuid" = "uuid",
* "label" = "label"
* "label" = "label",
* },
* links = {
* "edit-form" = "/admin/config/search/xmlsitemap/{xmlsitemap}/edit",
* "delete-form" = "/admin/config/search/xmlsitemap/{xmlsitemap}/delete"
* }
* "delete-form" = "/admin/config/search/xmlsitemap/{xmlsitemap}/delete",
* },
* config_export = {
* "id",
* "label",
* "context",
* },
* )
*/
class XmlSitemap extends ConfigEntityBase implements XmlSitemapInterface {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment