Further modules included.
[yaffs-website] / web / modules / contrib / drupalmoduleupgrader / config / install / drupalmoduleupgrader.rewriters.yml
diff --git a/web/modules/contrib/drupalmoduleupgrader/config/install/drupalmoduleupgrader.rewriters.yml b/web/modules/contrib/drupalmoduleupgrader/config/install/drupalmoduleupgrader.rewriters.yml
new file mode 100644 (file)
index 0000000..6c74cb0
--- /dev/null
@@ -0,0 +1,141 @@
+# This file controls the behavior of parametric rewriters, which are in
+# DMU's Utility\ParametricRewriter namespace.
+#
+# A parametric rewriter is essentially an intelligent search and replace
+# that acts on a function body and bases its changes on one of the
+# function's parameters. The type of parameter MUST be known ahead of time,
+# and it must be one of the types described in this file. A rewriter
+# configured to rewrite for a node, for example, will change $node->nid to
+# $node->id(), $node->title to $node->getTitle(), and so forth.
+
+definitions:
+  account:
+    type_hint: \Drupal\Core\Session\AccountInterface
+  comment:
+    type_hint: \Drupal\comment\CommentInterface
+    properties:
+      cid:
+        get: id
+      changed:
+        get: getChangedTime
+      created:
+        get: getCreatedTime
+        set: setCreatedTime
+      homepage:
+        get: getHomepage
+        set: setHomepage
+      hostname:
+        get: getHostname
+        set: setHostname
+      mail:
+        get: getAuthorEmail
+      name:
+        get: getAuthorName
+        set: setAuthorName
+      status:
+        get: isPublished
+        set: setPublished
+      subject:
+        get: getSubject
+        set: setSubject
+      thread:
+        get: getThread
+        set: setThread
+  field:
+    type_hint: \Drupal\Core\Field\FieldStorageDefinitionInterface
+    properties:
+      cardinality:
+        get: getCardinality
+      field_name:
+        get: getName
+      module:
+        get: getProvider
+      settings:
+        get: getSettings
+      translatable:
+        get: isTranslatable
+        set: setTranslatable
+      type:
+        get: getType
+  field_instance:
+    type_hint: \Drupal\Core\Field\FieldDefinitionInterface
+    properties:
+      bundle:
+        get: getTargetBundle
+      entity_type:
+        get: getTargetEntityTypeId
+      field_name:
+        get: getName
+      required:
+        get: isRequired
+      type:
+        get: getType
+  node:
+    type_hint: \Drupal\node\NodeInterface
+    properties:
+      nid:
+        get: id
+      sticky:
+        get: isSticky
+        set: setSticky
+      status:
+        get: isPublished
+        set: setPublished
+      promoted:
+        get: isPromoted
+        set: setPromoted
+      title:
+        get: getTitle
+        set: setTitle
+      uid:
+        get: getOwnerId
+        set: setOwnerId
+      created:
+        get: getCreatedTime
+        set: setCreatedTime
+      type:
+        get: getType
+      is_new:
+        get: isNew
+  user:
+    type_hint: \Drupal\user\UserInterface
+    properties:
+      uid:
+        get: id
+      access:
+        get: getLastAccessTime
+        set: setLastAccessTime
+      created:
+        get: getCreatedTime
+      is_new:
+        get: isNew
+      login:
+        get: getLastLoginTime
+        set: setLastLoginTime
+      mail:
+        get: getEmail
+        set: setEmail
+      name:
+        get: getUsername
+        set: setUsername
+      pass:
+        get: getPassword
+        set: setPassword
+  taxonomy_term:
+    type_hint: \Drupal\taxonomy\TermInterface
+    properties:
+      tid:
+        get: id
+      name:
+        get: getName
+        set: setName
+      description:
+        get: getDescription
+        set: setDescription
+      weight:
+        get: getWeight
+        set: setWeight
+      vid:
+        get: getVocabularyId
+      is_new:
+        get: isNew