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; ...@@ -10,27 +10,32 @@ use Drupal\xmlsitemap\XmlSitemapInterface;
* *
* @ConfigEntityType( * @ConfigEntityType(
* id = "xmlsitemap", * id = "xmlsitemap",
* label = @Translation("XmlSitemap"), * label = @Translation("XML sitemap"),
* handlers = { * handlers = {
* "storage" = "Drupal\xmlsitemap\XmlSitemapStorage", * "storage" = "Drupal\xmlsitemap\XmlSitemapStorage",
* "list_builder" = "Drupal\xmlsitemap\XmlSitemapListBuilder", * "list_builder" = "Drupal\xmlsitemap\XmlSitemapListBuilder",
* "form" = { * "form" = {
* "add" = "Drupal\xmlsitemap\Form\XmlSitemapForm", * "add" = "Drupal\xmlsitemap\Form\XmlSitemapForm",
* "edit" = "Drupal\xmlsitemap\Form\XmlSitemapForm", * "edit" = "Drupal\xmlsitemap\Form\XmlSitemapForm",
* "delete" = "Drupal\xmlsitemap\Form\XmlSitemapDeleteForm" * "delete" = "Drupal\xmlsitemap\Form\XmlSitemapDeleteForm",
* } * },
* }, * },
* config_prefix = "xmlsitemap", * config_prefix = "xmlsitemap",
* admin_permission = "administer site configuration", * admin_permission = "administer site configuration",
* entity_keys = { * entity_keys = {
* "id" = "id", * "id" = "id",
* "uuid" = "uuid", * "uuid" = "uuid",
* "label" = "label" * "label" = "label",
* }, * },
* links = { * links = {
* "edit-form" = "/admin/config/search/xmlsitemap/{xmlsitemap}/edit", * "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 { 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