You are here

drupalmoduleupgrader.rewriters.yml in Drupal 7 to 8/9 Module Upgrader 8

config/install/drupalmoduleupgrader.rewriters.yml

File

config/install/drupalmoduleupgrader.rewriters.yml
View source
  1. # This file controls the behavior of parametric rewriters, which are in
  2. # DMU's Utility\ParametricRewriter namespace.
  3. #
  4. # A parametric rewriter is essentially an intelligent search and replace
  5. # that acts on a function body and bases its changes on one of the
  6. # function's parameters. The type of parameter MUST be known ahead of time,
  7. # and it must be one of the types described in this file. A rewriter
  8. # configured to rewrite for a node, for example, will change $node->nid to
  9. # $node->id(), $node->title to $node->getTitle(), and so forth.
  10. definitions:
  11. account:
  12. type_hint: \Drupal\Core\Session\AccountInterface
  13. comment:
  14. type_hint: \Drupal\comment\CommentInterface
  15. properties:
  16. cid:
  17. get: id
  18. changed:
  19. get: getChangedTime
  20. created:
  21. get: getCreatedTime
  22. set: setCreatedTime
  23. homepage:
  24. get: getHomepage
  25. set: setHomepage
  26. hostname:
  27. get: getHostname
  28. set: setHostname
  29. mail:
  30. get: getAuthorEmail
  31. name:
  32. get: getAuthorName
  33. set: setAuthorName
  34. status:
  35. get: isPublished
  36. set: setPublished
  37. subject:
  38. get: getSubject
  39. set: setSubject
  40. thread:
  41. get: getThread
  42. set: setThread
  43. field:
  44. type_hint: \Drupal\Core\Field\FieldStorageDefinitionInterface
  45. properties:
  46. cardinality:
  47. get: getCardinality
  48. field_name:
  49. get: getName
  50. module:
  51. get: getProvider
  52. settings:
  53. get: getSettings
  54. translatable:
  55. get: isTranslatable
  56. set: setTranslatable
  57. type:
  58. get: getType
  59. field_instance:
  60. type_hint: \Drupal\Core\Field\FieldDefinitionInterface
  61. properties:
  62. bundle:
  63. get: getTargetBundle
  64. entity_type:
  65. get: getTargetEntityTypeId
  66. field_name:
  67. get: getName
  68. required:
  69. get: isRequired
  70. type:
  71. get: getType
  72. node:
  73. type_hint: \Drupal\node\NodeInterface
  74. properties:
  75. nid:
  76. get: id
  77. sticky:
  78. get: isSticky
  79. set: setSticky
  80. status:
  81. get: isPublished
  82. set: setPublished
  83. promoted:
  84. get: isPromoted
  85. set: setPromoted
  86. title:
  87. get: getTitle
  88. set: setTitle
  89. uid:
  90. get: getOwnerId
  91. set: setOwnerId
  92. created:
  93. get: getCreatedTime
  94. set: setCreatedTime
  95. type:
  96. get: getType
  97. is_new:
  98. get: isNew
  99. user:
  100. type_hint: \Drupal\user\UserInterface
  101. properties:
  102. uid:
  103. get: id
  104. access:
  105. get: getLastAccessTime
  106. set: setLastAccessTime
  107. created:
  108. get: getCreatedTime
  109. is_new:
  110. get: isNew
  111. login:
  112. get: getLastLoginTime
  113. set: setLastLoginTime
  114. mail:
  115. get: getEmail
  116. set: setEmail
  117. name:
  118. get: getUsername
  119. set: setUsername
  120. pass:
  121. get: getPassword
  122. set: setPassword
  123. taxonomy_term:
  124. type_hint: \Drupal\taxonomy\TermInterface
  125. properties:
  126. tid:
  127. get: id
  128. name:
  129. get: getName
  130. set: setName
  131. description:
  132. get: getDescription
  133. set: setDescription
  134. weight:
  135. get: getWeight
  136. set: setWeight
  137. vid:
  138. get: getVocabularyId
  139. is_new:
  140. get: isNew