diff --git a/composer.json b/composer.json
index 5bd1c034404904d667be9218068568642f77fbb1..01fd73edbf5c8ae08f1c7fb33b8bcb6bb5327644 100644
--- a/composer.json
+++ b/composer.json
@@ -75,6 +75,7 @@
         "drupal/administerusersbyrole": "2.0-alpha6",
         "drupal/allowed_formats": "1.1",
         "drupal/better_exposed_filters": "3.0-alpha4",
+        "drupal/block_field": "^1.0@alpha",
         "drupal/block_permissions": "^1.0",
         "drupal/block_region_permissions": "^1.2",
         "drupal/bootstrap": "3.16",
@@ -95,6 +96,7 @@
         "drupal/embed": "1.0",
         "drupal/entity": "1.0-beta1",
         "drupal/entity_browser": "1.4",
+        "drupal/entity_clone": "^1.0@beta",
         "drupal/entity_embed": "1.0-beta2",
         "drupal/entity_reference_revisions": "1.3",
         "drupal/externalauth": "1.1",
@@ -111,6 +113,7 @@
         "drupal/link_attributes": "1.0",
         "drupal/linkit": "5.0-beta6",
         "drupal/magnific_popup": "1.3",
+        "drupal/mathjax": "^2.7",
         "drupal/media_entity_browser": "2.0-alpha1",
         "drupal/media_entity_twitter": "2.0-alpha2",
         "drupal/menu_block": "1.4",
@@ -137,6 +140,7 @@
         "drupal/superfish": "1.2",
         "drupal/svg_image": "1.8",
         "drupal/token": "1.5",
+        "drupal/twitter_block": "3.0-alpha0",
         "drupal/userprotect": "1.0",
         "drupal/video_embed_field": "2.0",
         "drupal/view_unpublished": "^1.0@alpha",
diff --git a/composer.lock b/composer.lock
index af63af7d52da0f36cd857c55a3767f7c0932c343..21cc15adf087bd31a5bff805bf98668b2a0700d9 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
         "This file is @generated automatically"
     ],
-    "content-hash": "930b4b24df5a1782d5cd2a05de9ffda6",
+    "content-hash": "f610ca861b2413536928a19a8bdc73a9",
     "packages": [
         {
             "name": "alchemy/zippy",
@@ -1627,6 +1627,61 @@
                 "source": "http://cgit.drupalcode.org/better_exposed_filters"
             }
         },
+        {
+            "name": "drupal/block_field",
+            "version": "1.0.0-alpha8",
+            "source": {
+                "type": "git",
+                "url": "https://git.drupal.org/project/block_field",
+                "reference": "8.x-1.0-alpha8"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://ftp.drupal.org/files/projects/block_field-8.x-1.0-alpha8.zip",
+                "reference": "8.x-1.0-alpha8",
+                "shasum": "faffdd869263c3103f5c6a7a8d71ac440df1115f"
+            },
+            "require": {
+                "drupal/core": "~8.0"
+            },
+            "type": "drupal-module",
+            "extra": {
+                "branch-alias": {
+                    "dev-1.x": "1.x-dev"
+                },
+                "drupal": {
+                    "version": "8.x-1.0-alpha8",
+                    "datestamp": "1536732480",
+                    "security-coverage": {
+                        "status": "not-covered",
+                        "message": "Project has not opted into security advisory coverage!"
+                    }
+                }
+            },
+            "notification-url": "https://packages.drupal.org/8/downloads",
+            "license": [
+                "GPL-2.0-or-later"
+            ],
+            "authors": [
+                {
+                    "name": "acbramley",
+                    "homepage": "https://www.drupal.org/user/1036766"
+                },
+                {
+                    "name": "fenstrat",
+                    "homepage": "https://www.drupal.org/user/362649"
+                },
+                {
+                    "name": "jrockowitz",
+                    "homepage": "https://www.drupal.org/user/371407"
+                }
+            ],
+            "description": "Provides a field that allows a content entity to create and configure custom block instances.",
+            "homepage": "https://www.drupal.org/project/block_field",
+            "support": {
+                "source": "http://cgit.drupalcode.org/block_field"
+            }
+        },
         {
             "name": "drupal/block_permissions",
             "version": "1.0.0",
@@ -3402,6 +3457,53 @@
                 "irc": "irc://irc.freenode.org/drupal-contribute"
             }
         },
+        {
+            "name": "drupal/entity_clone",
+            "version": "1.0.0-beta1",
+            "source": {
+                "type": "git",
+                "url": "https://git.drupal.org/project/entity_clone",
+                "reference": "8.x-1.0-beta1"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://ftp.drupal.org/files/projects/entity_clone-8.x-1.0-beta1.zip",
+                "reference": "8.x-1.0-beta1",
+                "shasum": "d0ace20bbe1672fbe6d0cdd6da8f5b80cd156643"
+            },
+            "require": {
+                "drupal/core": "~8.0"
+            },
+            "type": "drupal-module",
+            "extra": {
+                "branch-alias": {
+                    "dev-1.x": "1.x-dev"
+                },
+                "drupal": {
+                    "version": "8.x-1.0-beta1",
+                    "datestamp": "1546583284",
+                    "security-coverage": {
+                        "status": "not-covered",
+                        "message": "Beta releases are not covered by Drupal security advisories."
+                    }
+                }
+            },
+            "notification-url": "https://packages.drupal.org/8/downloads",
+            "license": [
+                "GPL-2.0-or-later"
+            ],
+            "authors": [
+                {
+                    "name": "vpeltot",
+                    "homepage": "https://www.drupal.org/user/1361586"
+                }
+            ],
+            "description": "Add a clone action for all entities",
+            "homepage": "https://www.drupal.org/project/entity_clone",
+            "support": {
+                "source": "http://cgit.drupalcode.org/entity_clone"
+            }
+        },
         {
             "name": "drupal/entity_embed",
             "version": "1.0.0-beta2",
@@ -4345,6 +4447,57 @@
                 "source": "http://cgit.drupalcode.org/magnific_popup"
             }
         },
+        {
+            "name": "drupal/mathjax",
+            "version": "2.7.0",
+            "source": {
+                "type": "git",
+                "url": "https://git.drupal.org/project/mathjax",
+                "reference": "8.x-2.7"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://ftp.drupal.org/files/projects/mathjax-8.x-2.7.zip",
+                "reference": "8.x-2.7",
+                "shasum": "87f3772aab6a21d79168d00d48c4e41010522fec"
+            },
+            "require": {
+                "drupal/core": "~8.0"
+            },
+            "type": "drupal-module",
+            "extra": {
+                "branch-alias": {
+                    "dev-2.x": "2.x-dev"
+                },
+                "drupal": {
+                    "version": "8.x-2.7",
+                    "datestamp": "1492196642",
+                    "security-coverage": {
+                        "status": "covered",
+                        "message": "Covered by Drupal's security advisory policy"
+                    }
+                }
+            },
+            "notification-url": "https://packages.drupal.org/8/downloads",
+            "license": [
+                "GPL-2.0-or-later"
+            ],
+            "authors": [
+                {
+                    "name": "cilefen",
+                    "homepage": "https://www.drupal.org/user/1850070"
+                },
+                {
+                    "name": "julou",
+                    "homepage": "https://www.drupal.org/user/273952"
+                }
+            ],
+            "description": "Javascript-based LaTeX rendering solution for your Drupal website.",
+            "homepage": "https://www.drupal.org/project/mathjax",
+            "support": {
+                "source": "http://cgit.drupalcode.org/mathjax"
+            }
+        },
         {
             "name": "drupal/media_entity_browser",
             "version": "2.0.0-alpha1",
@@ -5871,6 +6024,69 @@
                 "source": "http://cgit.drupalcode.org/token"
             }
         },
+        {
+            "name": "drupal/twitter_block",
+            "version": "3.0.0-alpha0",
+            "source": {
+                "type": "git",
+                "url": "https://git.drupal.org/project/twitter_block",
+                "reference": "8.x-3.0-alpha0"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://ftp.drupal.org/files/projects/twitter_block-8.x-3.0-alpha0.zip",
+                "reference": "8.x-3.0-alpha0",
+                "shasum": "f959bec1332f2bd45e813eefa3b982df4eb129bb"
+            },
+            "require": {
+                "drupal/core": "*"
+            },
+            "type": "drupal-module",
+            "extra": {
+                "branch-alias": {
+                    "dev-3.x": "3.x-dev"
+                },
+                "drupal": {
+                    "version": "8.x-3.0-alpha0",
+                    "datestamp": "1489574283",
+                    "security-coverage": {
+                        "status": "not-covered",
+                        "message": "Alpha releases are not covered by Drupal security advisories."
+                    }
+                }
+            },
+            "notification-url": "https://packages.drupal.org/8/downloads",
+            "license": [
+                "GPL-2.0+"
+            ],
+            "authors": [
+                {
+                    "name": "Devin Carlson",
+                    "homepage": "https://www.drupal.org/user/290182"
+                },
+                {
+                    "name": "ZenDoodles",
+                    "homepage": "https://www.drupal.org/user/226976"
+                },
+                {
+                    "name": "cweagans",
+                    "homepage": "https://www.drupal.org/user/404732"
+                },
+                {
+                    "name": "naveenvalecha",
+                    "homepage": "https://www.drupal.org/user/2665733"
+                },
+                {
+                    "name": "subhojit777",
+                    "homepage": "https://www.drupal.org/user/1812492"
+                }
+            ],
+            "description": "Provides configurable blocks for a Twitter feed.",
+            "homepage": "http://drupal.org/project/twitter_block",
+            "support": {
+                "source": "http://cgit.drupalcode.org/twitter_block"
+            }
+        },
         {
             "name": "drupal/userprotect",
             "version": "1.0.0",
@@ -10551,6 +10767,8 @@
     "aliases": [],
     "minimum-stability": "dev",
     "stability-flags": {
+        "drupal/block_field": 15,
+        "drupal/entity_clone": 10,
         "drupal/migrate_devel": 20,
         "drupal/roleassign": 15,
         "drupal/view_unpublished": 15
diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json
index fc78d53e27a7719cd4d76f8755da4c9b2f9551ea..93a3dd808c608d6c96d9ea3879af7a01b7ad9194 100644
--- a/vendor/composer/installed.json
+++ b/vendor/composer/installed.json
@@ -1680,6 +1680,63 @@
             "source": "http://cgit.drupalcode.org/better_exposed_filters"
         }
     },
+    {
+        "name": "drupal/block_field",
+        "version": "1.0.0-alpha8",
+        "version_normalized": "1.0.0.0-alpha8",
+        "source": {
+            "type": "git",
+            "url": "https://git.drupal.org/project/block_field",
+            "reference": "8.x-1.0-alpha8"
+        },
+        "dist": {
+            "type": "zip",
+            "url": "https://ftp.drupal.org/files/projects/block_field-8.x-1.0-alpha8.zip",
+            "reference": "8.x-1.0-alpha8",
+            "shasum": "faffdd869263c3103f5c6a7a8d71ac440df1115f"
+        },
+        "require": {
+            "drupal/core": "~8.0"
+        },
+        "type": "drupal-module",
+        "extra": {
+            "branch-alias": {
+                "dev-1.x": "1.x-dev"
+            },
+            "drupal": {
+                "version": "8.x-1.0-alpha8",
+                "datestamp": "1536732480",
+                "security-coverage": {
+                    "status": "not-covered",
+                    "message": "Project has not opted into security advisory coverage!"
+                }
+            }
+        },
+        "installation-source": "dist",
+        "notification-url": "https://packages.drupal.org/8/downloads",
+        "license": [
+            "GPL-2.0-or-later"
+        ],
+        "authors": [
+            {
+                "name": "acbramley",
+                "homepage": "https://www.drupal.org/user/1036766"
+            },
+            {
+                "name": "fenstrat",
+                "homepage": "https://www.drupal.org/user/362649"
+            },
+            {
+                "name": "jrockowitz",
+                "homepage": "https://www.drupal.org/user/371407"
+            }
+        ],
+        "description": "Provides a field that allows a content entity to create and configure custom block instances.",
+        "homepage": "https://www.drupal.org/project/block_field",
+        "support": {
+            "source": "http://cgit.drupalcode.org/block_field"
+        }
+    },
     {
         "name": "drupal/block_permissions",
         "version": "1.0.0",
@@ -3503,6 +3560,55 @@
             "irc": "irc://irc.freenode.org/drupal-contribute"
         }
     },
+    {
+        "name": "drupal/entity_clone",
+        "version": "1.0.0-beta1",
+        "version_normalized": "1.0.0.0-beta1",
+        "source": {
+            "type": "git",
+            "url": "https://git.drupal.org/project/entity_clone",
+            "reference": "8.x-1.0-beta1"
+        },
+        "dist": {
+            "type": "zip",
+            "url": "https://ftp.drupal.org/files/projects/entity_clone-8.x-1.0-beta1.zip",
+            "reference": "8.x-1.0-beta1",
+            "shasum": "d0ace20bbe1672fbe6d0cdd6da8f5b80cd156643"
+        },
+        "require": {
+            "drupal/core": "~8.0"
+        },
+        "type": "drupal-module",
+        "extra": {
+            "branch-alias": {
+                "dev-1.x": "1.x-dev"
+            },
+            "drupal": {
+                "version": "8.x-1.0-beta1",
+                "datestamp": "1546583284",
+                "security-coverage": {
+                    "status": "not-covered",
+                    "message": "Beta releases are not covered by Drupal security advisories."
+                }
+            }
+        },
+        "installation-source": "dist",
+        "notification-url": "https://packages.drupal.org/8/downloads",
+        "license": [
+            "GPL-2.0-or-later"
+        ],
+        "authors": [
+            {
+                "name": "vpeltot",
+                "homepage": "https://www.drupal.org/user/1361586"
+            }
+        ],
+        "description": "Add a clone action for all entities",
+        "homepage": "https://www.drupal.org/project/entity_clone",
+        "support": {
+            "source": "http://cgit.drupalcode.org/entity_clone"
+        }
+    },
     {
         "name": "drupal/entity_embed",
         "version": "1.0.0-beta2",
@@ -4478,6 +4584,59 @@
             "source": "http://cgit.drupalcode.org/magnific_popup"
         }
     },
+    {
+        "name": "drupal/mathjax",
+        "version": "2.7.0",
+        "version_normalized": "2.7.0.0",
+        "source": {
+            "type": "git",
+            "url": "https://git.drupal.org/project/mathjax",
+            "reference": "8.x-2.7"
+        },
+        "dist": {
+            "type": "zip",
+            "url": "https://ftp.drupal.org/files/projects/mathjax-8.x-2.7.zip",
+            "reference": "8.x-2.7",
+            "shasum": "87f3772aab6a21d79168d00d48c4e41010522fec"
+        },
+        "require": {
+            "drupal/core": "~8.0"
+        },
+        "type": "drupal-module",
+        "extra": {
+            "branch-alias": {
+                "dev-2.x": "2.x-dev"
+            },
+            "drupal": {
+                "version": "8.x-2.7",
+                "datestamp": "1492196642",
+                "security-coverage": {
+                    "status": "covered",
+                    "message": "Covered by Drupal's security advisory policy"
+                }
+            }
+        },
+        "installation-source": "dist",
+        "notification-url": "https://packages.drupal.org/8/downloads",
+        "license": [
+            "GPL-2.0-or-later"
+        ],
+        "authors": [
+            {
+                "name": "cilefen",
+                "homepage": "https://www.drupal.org/user/1850070"
+            },
+            {
+                "name": "julou",
+                "homepage": "https://www.drupal.org/user/273952"
+            }
+        ],
+        "description": "Javascript-based LaTeX rendering solution for your Drupal website.",
+        "homepage": "https://www.drupal.org/project/mathjax",
+        "support": {
+            "source": "http://cgit.drupalcode.org/mathjax"
+        }
+    },
     {
         "name": "drupal/media_entity_browser",
         "version": "2.0.0-alpha1",
@@ -6055,6 +6214,71 @@
             "source": "http://cgit.drupalcode.org/token"
         }
     },
+    {
+        "name": "drupal/twitter_block",
+        "version": "3.0.0-alpha0",
+        "version_normalized": "3.0.0.0-alpha",
+        "source": {
+            "type": "git",
+            "url": "https://git.drupal.org/project/twitter_block",
+            "reference": "8.x-3.0-alpha0"
+        },
+        "dist": {
+            "type": "zip",
+            "url": "https://ftp.drupal.org/files/projects/twitter_block-8.x-3.0-alpha0.zip",
+            "reference": "8.x-3.0-alpha0",
+            "shasum": "f959bec1332f2bd45e813eefa3b982df4eb129bb"
+        },
+        "require": {
+            "drupal/core": "*"
+        },
+        "type": "drupal-module",
+        "extra": {
+            "branch-alias": {
+                "dev-3.x": "3.x-dev"
+            },
+            "drupal": {
+                "version": "8.x-3.0-alpha0",
+                "datestamp": "1489574283",
+                "security-coverage": {
+                    "status": "not-covered",
+                    "message": "Alpha releases are not covered by Drupal security advisories."
+                }
+            }
+        },
+        "installation-source": "dist",
+        "notification-url": "https://packages.drupal.org/8/downloads",
+        "license": [
+            "GPL-2.0+"
+        ],
+        "authors": [
+            {
+                "name": "Devin Carlson",
+                "homepage": "https://www.drupal.org/user/290182"
+            },
+            {
+                "name": "ZenDoodles",
+                "homepage": "https://www.drupal.org/user/226976"
+            },
+            {
+                "name": "cweagans",
+                "homepage": "https://www.drupal.org/user/404732"
+            },
+            {
+                "name": "naveenvalecha",
+                "homepage": "https://www.drupal.org/user/2665733"
+            },
+            {
+                "name": "subhojit777",
+                "homepage": "https://www.drupal.org/user/1812492"
+            }
+        ],
+        "description": "Provides configurable blocks for a Twitter feed.",
+        "homepage": "http://drupal.org/project/twitter_block",
+        "support": {
+            "source": "http://cgit.drupalcode.org/twitter_block"
+        }
+    },
     {
         "name": "drupal/userprotect",
         "version": "1.0.0",
diff --git a/web/modules/block_field/LICENSE.txt b/web/modules/block_field/LICENSE.txt
new file mode 100644
index 0000000000000000000000000000000000000000..d159169d1050894d3ea3b98e1c965c4058208fe1
--- /dev/null
+++ b/web/modules/block_field/LICENSE.txt
@@ -0,0 +1,339 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                            NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
diff --git a/web/modules/block_field/NOTES.md b/web/modules/block_field/NOTES.md
new file mode 100644
index 0000000000000000000000000000000000000000..c2d62a346205ddf39ef97c71e5fc448c72a254f6
--- /dev/null
+++ b/web/modules/block_field/NOTES.md
@@ -0,0 +1,73 @@
+
+Steps for creating a new release
+--------------------------------
+
+  1. Cleanup code
+  2. Review code
+  3. Run tests
+  4. Generate release notes
+  5. Tag and create a new release
+  6. Update project page
+
+
+1. Cleanup code
+---------------
+
+[Convert to short array syntax](https://www.drupal.org/project/short_array_syntax)
+
+    drush short-array-syntax block_field
+
+
+2. Review code
+--------------
+
+[Online](http://pareview.sh)
+
+    http://git.drupal.org/project/block_field.git 8.x-1.x
+
+[Commandline](https://www.drupal.org/node/1587138)
+
+    # Check Drupal coding standards
+    phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,js,css,info modules/sandbox/block_field
+
+    # Check Drupal best practices
+    phpcs --standard=DrupalPractice --extensions=php,module,inc,install,test,profile,theme,js,css,info modules/sandbox/block_field
+
+
+3. Run tests
+------------
+
+[SimpleTest](https://www.drupal.org/node/645286)
+
+    # Run all tests
+    php core/scripts/run-tests.sh --url http://localhost/d8_dev --module block_field
+
+
+4. Generate release notes
+-------------------------
+
+[Git Release Notes for Drush](https://www.drupal.org/project/grn)
+
+    drush release-notes 8.x-1.0-VERSION 8.x-1.x
+
+
+5. Tag and create a new release
+-------------------------------
+
+[Tag a release](https://www.drupal.org/node/1066342)
+
+    git tag 8.x-1.0-VERSION
+    git push --tags
+    git push origin tag 8.x-1.0-VERSION
+
+[Create new release](https://www.drupal.org/node/add/project-release/2728453)
+
+
+6. Update project page
+----------------------
+
+[Export README.md](https://www.drupal.org/project/readme)
+    
+     drush readme-export --project block_field
+
+[Edit project page](https://www.drupal.org/node/2728453/edit)
diff --git a/web/modules/block_field/README.md b/web/modules/block_field/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..41ea0eb5d3d3c5280caeab258172bd29a1d5495f
--- /dev/null
+++ b/web/modules/block_field/README.md
@@ -0,0 +1,73 @@
+
+Contents of this file
+---------------------
+
+ * About this module
+ * Use cases
+ * Demo
+ * Installation
+ * Notes
+ * Known Issues/Limitations
+ * Todo
+
+
+About this Module
+-----------------
+
+Provides a field that allows a content entity to create and configure custom 
+block instances.
+
+
+Use Cases
+---------
+
+- Add blocks to a node's sidebar.
+- Add blocks to paragraph.
+- Create a carousel of content and configurable blocks.
+
+
+Demo
+----
+
+> Evaluate this project online using [simplytest.me](https://simplytest.me/project/block_field).
+ 
+ 
+Installation
+------------
+
+1. Copy/upload the `block_field.module` to the modules directory of your 
+   Drupal installation.
+
+2. Enable the 'Block field' module in 'Extend'. (/admin/modules)
+
+3. Add the 'Block (plugin)' field to any content entity
+
+
+Notes
+-----
+
+- The Block field's block instances are stored as configuration, which is good 
+  thing, since site builders and editors can easily tweak them with impacting 
+  any configuration management.
+
+- All content blocks from the 'Custom Block Library' are available.
+
+
+Known Issues/Limitations
+------------------------
+
+- Context aware plugins are not currently supported. This includes ctools 
+  entity view blocks.
+  See: \Drupal\block_field\BlockFieldManager::getBlockDefinitions
+
+
+Todo
+----
+
+- Write additional test for block field plugin ids setting.
+
+
+Author/Maintainer
+-----------------
+
+- [Jacob Rockowitz](http://drupal.org/user/371407)
diff --git a/web/modules/block_field/block_field.info.yml b/web/modules/block_field/block_field.info.yml
new file mode 100644
index 0000000000000000000000000000000000000000..9b1a1a65c6c219e570777bbbf802ef8a9498f498
--- /dev/null
+++ b/web/modules/block_field/block_field.info.yml
@@ -0,0 +1,11 @@
+name: 'Block Field'
+type: module
+description: 'Provides a field that allows a content entity to create and configure custom block instances.'
+package: Field
+# core: 8.x
+
+# Information added by Drupal.org packaging script on 2018-09-12
+version: '8.x-1.0-alpha8'
+core: '8.x'
+project: 'block_field'
+datestamp: 1536732484
diff --git a/web/modules/block_field/block_field.services.yml b/web/modules/block_field/block_field.services.yml
new file mode 100644
index 0000000000000000000000000000000000000000..f8bdc233f5b007608abd3b11e398687e4dd2f1b8
--- /dev/null
+++ b/web/modules/block_field/block_field.services.yml
@@ -0,0 +1,4 @@
+services:
+  block_field.manager:
+    class: Drupal\block_field\BlockFieldManager
+    arguments: ['@plugin.manager.block', '@context.repository']
diff --git a/web/modules/block_field/config/schema/block_field.yml b/web/modules/block_field/config/schema/block_field.yml
new file mode 100644
index 0000000000000000000000000000000000000000..44f2e40b2aa1c4ca86c9b90ba373c5f89774c7f0
--- /dev/null
+++ b/web/modules/block_field/config/schema/block_field.yml
@@ -0,0 +1,48 @@
+# Schema for the configuration files of the Link module.
+
+field.formatter.settings.block_field:
+  type: mapping
+  label: 'Link format settings'
+  mapping: {  }
+
+field.widget.settings.block_field_default:
+  type: mapping
+  label: 'Link format settings'
+  mapping:
+    plugin_id:
+      type: string
+      label: 'Plugin ID'
+    settings:
+      type: sequence
+      label: 'Settings'
+      sequence:
+        type: string
+    configuration_form:
+      type: string
+
+field.storage_settings.block_field:
+  type: mapping
+  label: 'Block field settings'
+
+field.field_settings.block_field:
+  type: mapping
+  label: 'Block field settings'
+  mapping:
+    plugin_ids:
+      type: sequence
+      label: 'Plugin ids'
+      sequence:
+        type: string
+
+field.value.block_field:
+  type: mapping
+  label: 'Default value'
+  mapping:
+    plugin_id:
+      type: string
+      label: 'Plugin ID'
+    settings:
+      type: sequence
+      label: 'Settings'
+      sequence:
+        type: string
diff --git a/web/modules/block_field/phpcs.xml b/web/modules/block_field/phpcs.xml
new file mode 100644
index 0000000000000000000000000000000000000000..3327b88c0de8db4928dfd7f7a56d8512739d722c
--- /dev/null
+++ b/web/modules/block_field/phpcs.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<ruleset name="Block field coding standards">
+  <description>Drupal 8 coding standards</description>
+
+  <file>.</file>
+  <arg name="extensions" value="inc,install,module,php,profile,test,theme,yml"/>
+
+  <!-- Ignore markdown. -->
+  <exclude-pattern>README\.md</exclude-pattern>
+  <exclude-pattern>NOTES\.md</exclude-pattern>
+
+  <rule ref="Drupal"/>
+</ruleset>
diff --git a/web/modules/block_field/src/BlockFieldItemInterface.php b/web/modules/block_field/src/BlockFieldItemInterface.php
new file mode 100644
index 0000000000000000000000000000000000000000..734424d6cebc316a632aa4f94a002f2f7b99d24b
--- /dev/null
+++ b/web/modules/block_field/src/BlockFieldItemInterface.php
@@ -0,0 +1,20 @@
+<?php
+
+namespace Drupal\block_field;
+
+use Drupal\Core\Field\FieldItemInterface;
+
+/**
+ * Defines an interface for the block field item.
+ */
+interface BlockFieldItemInterface extends FieldItemInterface {
+
+  /**
+   * Get block instance.
+   *
+   * @return null|\Drupal\Core\Block\BlockPluginInterface
+   *   Return the block instance or NULL if the block does not exist.
+   */
+  public function getBlock();
+
+}
diff --git a/web/modules/block_field/src/BlockFieldManager.php b/web/modules/block_field/src/BlockFieldManager.php
new file mode 100644
index 0000000000000000000000000000000000000000..87a5166e69be108a326b87e600edf81f034b677e
--- /dev/null
+++ b/web/modules/block_field/src/BlockFieldManager.php
@@ -0,0 +1,48 @@
+<?php
+
+namespace Drupal\block_field;
+
+use Drupal\Core\Block\BlockManagerInterface;
+use Drupal\Core\Plugin\Context\ContextRepositoryInterface;
+
+/**
+ * Defines a service that manages block plugins for the block field.
+ */
+class BlockFieldManager implements BlockFieldManagerInterface {
+
+  /**
+   * The block plugin manager.
+   *
+   * @var \Drupal\Core\Block\BlockManagerInterface
+   */
+  protected $blockManager;
+
+  /**
+   * The context repository.
+   *
+   * @var \Drupal\Core\Plugin\Context\ContextRepositoryInterface
+   */
+  protected $contextRepository;
+
+  /**
+   * Constructs a new BlockFieldManager.
+   *
+   * @param \Drupal\Core\Block\BlockManagerInterface $block_manager
+   *   The block plugin manager.
+   * @param \Drupal\Core\Plugin\Context\ContextRepositoryInterface $context_repository
+   *   The context repository.
+   */
+  public function __construct(BlockManagerInterface $block_manager, ContextRepositoryInterface $context_repository) {
+    $this->blockManager = $block_manager;
+    $this->contextRepository = $context_repository;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getBlockDefinitions() {
+    $definitions = $this->blockManager->getDefinitionsForContexts($this->contextRepository->getAvailableContexts());
+    return $this->blockManager->getSortedDefinitions($definitions);
+  }
+
+}
diff --git a/web/modules/block_field/src/BlockFieldManagerInterface.php b/web/modules/block_field/src/BlockFieldManagerInterface.php
new file mode 100644
index 0000000000000000000000000000000000000000..e57580f1ba26e5d82f56af94c1d336370a3e29b1
--- /dev/null
+++ b/web/modules/block_field/src/BlockFieldManagerInterface.php
@@ -0,0 +1,18 @@
+<?php
+
+namespace Drupal\block_field;
+
+/**
+ * Provides an interface defining a BLock field manager.
+ */
+interface BlockFieldManagerInterface {
+
+  /**
+   * Get sorted listed of supported block definitions.
+   *
+   * @return array
+   *   An associative array of supported block definitions.
+   */
+  public function getBlockDefinitions();
+
+}
diff --git a/web/modules/block_field/src/Plugin/Field/FieldFormatter/BlockFieldFormatter.php b/web/modules/block_field/src/Plugin/Field/FieldFormatter/BlockFieldFormatter.php
new file mode 100644
index 0000000000000000000000000000000000000000..39e86988447c7d1eebee63b18699220bb53e0d21
--- /dev/null
+++ b/web/modules/block_field/src/Plugin/Field/FieldFormatter/BlockFieldFormatter.php
@@ -0,0 +1,67 @@
+<?php
+
+namespace Drupal\block_field\Plugin\Field\FieldFormatter;
+
+use Drupal\Component\Plugin\Exception\ContextException;
+use Drupal\Core\Field\FieldItemListInterface;
+use Drupal\Core\Field\FormatterBase;
+use Drupal\Core\Plugin\ContextAwarePluginInterface;
+
+/**
+ * Plugin implementation of the 'block_field' formatter.
+ *
+ * @FieldFormatter(
+ *   id = "block_field",
+ *   label = @Translation("Block field"),
+ *   field_types = {
+ *     "block_field"
+ *   }
+ * )
+ */
+class BlockFieldFormatter extends FormatterBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function viewElements(FieldItemListInterface $items, $langcode) {
+    $elements = [];
+    foreach ($items as $delta => $item) {
+      /** @var \Drupal\block_field\BlockFieldItemInterface $item */
+      $block_instance = $item->getBlock();
+
+      // Inject runtime contexts.
+      if ($block_instance instanceof ContextAwarePluginInterface) {
+        try {
+          $contexts = \Drupal::service('context.repository')->getRuntimeContexts($block_instance->getContextMapping());
+          \Drupal::service('context.handler')->applyContextMapping($block_instance, $contexts);
+        }
+        catch (ContextException $e) {
+          continue;
+        }
+      }
+
+      // Make sure the block exists and is accessible.
+      if (!$block_instance || !$block_instance->access(\Drupal::currentUser())) {
+        continue;
+      }
+
+      // See \Drupal\block\BlockViewBuilder::buildPreRenderableBlock
+      // See template_preprocess_block()
+      $elements[$delta] = [
+        '#theme' => 'block',
+        '#attributes' => [],
+        '#configuration' => $block_instance->getConfiguration(),
+        '#plugin_id' => $block_instance->getPluginId(),
+        '#base_plugin_id' => $block_instance->getBaseId(),
+        '#derivative_plugin_id' => $block_instance->getDerivativeId(),
+        'content' => $block_instance->build(),
+      ];
+
+      /** @var \Drupal\Core\Render\RendererInterface $renderer */
+      $renderer = \Drupal::service('renderer');
+      $renderer->addCacheableDependency($elements[$delta], $block_instance);
+    }
+    return $elements;
+  }
+
+}
diff --git a/web/modules/block_field/src/Plugin/Field/FieldFormatter/BlockFieldLabelFormatter.php b/web/modules/block_field/src/Plugin/Field/FieldFormatter/BlockFieldLabelFormatter.php
new file mode 100644
index 0000000000000000000000000000000000000000..ad1835496fab286303abfd937b7c4abd4fb8ff2c
--- /dev/null
+++ b/web/modules/block_field/src/Plugin/Field/FieldFormatter/BlockFieldLabelFormatter.php
@@ -0,0 +1,45 @@
+<?php
+
+namespace Drupal\block_field\Plugin\Field\FieldFormatter;
+
+use Drupal\Core\Field\FieldItemListInterface;
+use Drupal\Core\Field\FormatterBase;
+
+/**
+ * Plugin implementation of the 'block_field_label' formatter.
+ *
+ * @FieldFormatter(
+ *   id = "block_field_label",
+ *   label = @Translation("Block field label"),
+ *   field_types = {
+ *     "block_field"
+ *   }
+ * )
+ */
+class BlockFieldLabelFormatter extends FormatterBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function viewElements(FieldItemListInterface $items, $langcode) {
+    $elements = [];
+    foreach ($items as $delta => $item) {
+      /** @var \Drupal\block_field\BlockFieldItemInterface $item */
+      $block_instance = $item->getBlock();
+      // Make sure the block exists and is accessible.
+      if (!$block_instance || !$block_instance->access(\Drupal::currentUser())) {
+        continue;
+      }
+
+      $elements[$delta] = [
+        '#markup' => $block_instance->label(),
+      ];
+
+      /** @var \Drupal\Core\Render\RendererInterface $renderer */
+      $renderer = \Drupal::service('renderer');
+      $renderer->addCacheableDependency($elements[$delta], $block_instance);
+    }
+    return $elements;
+  }
+
+}
diff --git a/web/modules/block_field/src/Plugin/Field/FieldType/BlockFieldItem.php b/web/modules/block_field/src/Plugin/Field/FieldType/BlockFieldItem.php
new file mode 100644
index 0000000000000000000000000000000000000000..80634e1a27709d38e98f339b54ab389cdfff24e0
--- /dev/null
+++ b/web/modules/block_field/src/Plugin/Field/FieldType/BlockFieldItem.php
@@ -0,0 +1,197 @@
+<?php
+
+namespace Drupal\block_field\Plugin\Field\FieldType;
+
+use Drupal\block_field\BlockFieldItemInterface;
+use Drupal\Core\Field\FieldItemBase;
+use Drupal\Core\Field\FieldStorageDefinitionInterface;
+use Drupal\Core\Form\FormStateInterface;
+use Drupal\Core\TypedData\DataDefinition;
+use Drupal\Core\TypedData\MapDataDefinition;
+
+/**
+ * Plugin implementation of the 'block_field' field type.
+ *
+ * @FieldType(
+ *   id = "block_field",
+ *   label = @Translation("Block (plugin)"),
+ *   description = @Translation("Stores an instance of a configurable or custom block."),
+ *   category = @Translation("Reference"),
+ *   default_widget = "block_field_default",
+ *   default_formatter = "block_field",
+ * )
+ */
+class BlockFieldItem extends FieldItemBase implements BlockFieldItemInterface {
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function defaultFieldSettings() {
+    return [
+      'plugin_ids' => [],
+    ] + parent::defaultFieldSettings();
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function mainPropertyName() {
+    return 'plugin_id';
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition) {
+    $properties['plugin_id'] = DataDefinition::create('string')
+      ->setLabel(t('Plugin ID'))
+      ->setRequired(TRUE);
+
+    $properties['settings'] = MapDataDefinition::create()
+      ->setLabel(t('Settings'));
+
+    return $properties;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function schema(FieldStorageDefinitionInterface $field_definition) {
+    return [
+      'columns' => [
+        'plugin_id' => [
+          'description' => 'The block plugin id',
+          'type' => 'varchar',
+          'length' => 255,
+        ],
+        'settings' => [
+          'description' => 'Serialized array of settings for the block.',
+          'type' => 'blob',
+          'size' => 'big',
+          'serialize' => TRUE,
+        ],
+      ],
+      'indexes' => ['plugin_id' => ['plugin_id']],
+    ];
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function fieldSettingsForm(array $form, FormStateInterface $form_state) {
+    $field = $form_state->getFormObject()->getEntity();
+
+    /** @var \Drupal\block_field\BlockFieldManagerInterface $block_field_manager */
+    $block_field_manager = \Drupal::service('block_field.manager');
+    $definitions = $block_field_manager->getBlockDefinitions();
+    foreach ($definitions as $plugin_id => $definition) {
+      $options[$plugin_id] = [
+        ['category' => (string) $definition['category']],
+        ['label' => $definition['admin_label'] . ' (' . $plugin_id . ')'],
+        ['provider' => $definition['provider']],
+      ];
+    }
+
+    $default_value = $field->getSetting('plugin_ids') ?: array_keys($options);
+
+    $element = [];
+    $element['blocks'] = [
+      '#type' => 'details',
+      '#title' => $this->t('Blocks'),
+      '#description' => $this->t('Please select available blocks.'),
+      '#open' => $field->getSetting('plugin_ids') ? TRUE : FALSE,
+    ];
+    $element['blocks']['plugin_ids'] = [
+      '#type' => 'tableselect',
+      '#header' => [
+        'Category',
+        'Label/ID',
+        'Provider',
+      ],
+      '#options' => $options,
+      '#js_select' => TRUE,
+      '#required' => TRUE,
+      '#empty' => t('No blocks are available.'),
+      '#parents' => ['settings', 'plugin_ids'],
+      '#element_validate' => [[get_called_class(), 'validatePluginIds']],
+      '#default_value' => array_combine($default_value, $default_value),
+    ];
+    return $element;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function isEmpty() {
+    $value = $this->get('plugin_id')->getValue();
+    return $value === NULL || $value === '';
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function setValue($values, $notify = TRUE) {
+    // Treat the values as property value of the main property, if no array is
+    // given.
+    if (isset($values) && !is_array($values)) {
+      $values = [static::mainPropertyName() => $values];
+    }
+    if (isset($values)) {
+      $values += [
+        'settings' => [],
+      ];
+    }
+    // Unserialize the values.
+    if (is_string($values['settings'])) {
+      $values['settings'] = unserialize($values['settings']);
+    }
+    parent::setValue($values, $notify);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getBlock() {
+    if (empty($this->plugin_id)) {
+      return NULL;
+    }
+
+    /** @var \Drupal\Core\Block\BlockManagerInterface $block_manager */
+    $block_manager = \Drupal::service('plugin.manager.block');
+
+    /** @var \Drupal\Core\Block\BlockPluginInterface $block_instance */
+    $block_instance = $block_manager->createInstance($this->plugin_id, $this->settings);
+
+    $plugin_definition = $block_instance->getPluginDefinition();
+
+    // Don't return broken block plugin instances.
+    if ($plugin_definition['id'] == 'broken') {
+      return NULL;
+    }
+
+    // Don't return broken block content instances.
+    if ($plugin_definition['id'] == 'block_content') {
+      $uuid = $block_instance->getDerivativeId();
+      if (!\Drupal::service('entity.repository')->loadEntityByUuid('block_content', $uuid)) {
+        return NULL;
+      }
+    }
+
+    return $block_instance;
+  }
+
+  /**
+   * Validates plugin_ids table select element.
+   */
+  public static function validatePluginIds(array &$element, FormStateInterface $form_state, &$complete_form) {
+    $value = array_filter($element['#value']);
+    if (array_keys($element['#options']) == array_keys($value)) {
+      $form_state->setValueForElement($element, []);
+    }
+    else {
+      $form_state->setValueForElement($element, $value);
+    }
+    return $element;
+  }
+
+}
diff --git a/web/modules/block_field/src/Plugin/Field/FieldWidget/BlockFieldWidget.php b/web/modules/block_field/src/Plugin/Field/FieldWidget/BlockFieldWidget.php
new file mode 100644
index 0000000000000000000000000000000000000000..90c51231c8e0a7b3b219faa2b0a100fed6353edf
--- /dev/null
+++ b/web/modules/block_field/src/Plugin/Field/FieldWidget/BlockFieldWidget.php
@@ -0,0 +1,301 @@
+<?php
+
+namespace Drupal\block_field\Plugin\Field\FieldWidget;
+
+use Drupal\Component\Utility\NestedArray;
+use Drupal\Core\Block\BlockManagerInterface;
+use Drupal\Core\Field\FieldItemListInterface;
+use Drupal\Core\Field\WidgetBase;
+use Drupal\Core\Form\FormState;
+use Drupal\Core\Form\FormStateInterface;
+use Drupal\Core\Form\SubformState;
+use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
+use Drupal\Core\Plugin\ContextAwarePluginInterface;
+use Symfony\Component\DependencyInjection\ContainerInterface;
+
+/**
+ * Plugin implementation of the 'block_field' widget.
+ *
+ * @FieldWidget(
+ *   id = "block_field_default",
+ *   label = @Translation("Block field"),
+ *   field_types = {
+ *     "block_field"
+ *   }
+ * )
+ */
+class BlockFieldWidget extends WidgetBase implements ContainerFactoryPluginInterface {
+
+  /**
+   * The block manager.
+   *
+   * @var \Drupal\Core\Block\BlockManagerInterface
+   */
+  protected $blockManager;
+
+  /**
+   * Set the block manager.
+   *
+   * @param \Drupal\Core\Block\BlockManagerInterface $block_manager
+   *   The block manager.
+   */
+  public function setBlockManager(BlockManagerInterface $block_manager) {
+    $this->blockManager = $block_manager;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
+    $instance = new static(
+      $plugin_id,
+      $plugin_definition,
+      $configuration['field_definition'],
+      $configuration['settings'],
+      $configuration['third_party_settings']
+    );
+    $instance->setBlockManager($container->get('plugin.manager.block'));
+
+    return $instance;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function defaultSettings() {
+    return [
+      'plugin_id' => '',
+      'settings' => [],
+      'configuration_form' => 'full',
+    ] + parent::defaultSettings();
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function settingsForm(array $form, FormStateInterface $form_state) {
+    $elements['configuration_form'] = [
+      '#type' => 'select',
+      '#title' => $this->t('Configuration form'),
+      '#description' => $this->t('How the block configuration form will be shown.'),
+      '#options' => [
+        'full' => $this->t('Full'),
+        'hidden' => $this->t('Hidden'),
+      ],
+      '#default_value' => $this->getSetting('configuration_form'),
+      '#required' => TRUE,
+    ];
+
+    return $elements;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function settingsSummary() {
+    $summary[] = $this->t('Configuration form: @configuration_form', ['@configuration_form' => $this->getSetting('configuration_form')]);
+    return $summary;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function formElement(FieldItemListInterface $items, $delta, array $element, array &$form, FormStateInterface $form_state) {
+    /** @var \Drupal\block_field\BlockFieldItemInterface $item */
+    $item =& $items[$delta];
+
+    $field_name = $this->fieldDefinition->getName();
+    $settings_id = implode('-', array_merge(
+      $element['#field_parents'],
+      [$field_name, $delta, 'settings']
+    ));
+
+    $plugin_ids = $this->fieldDefinition->getSetting('plugin_ids');
+
+    $values = $form_state->getValues();
+    $item->plugin_id = (isset($values[$field_name][$delta]['plugin_id'])) ? $values[$field_name][$delta]['plugin_id'] : $item->plugin_id;
+    if (!empty($values[$field_name][$delta]['settings'])) {
+      $item->settings = $values[$field_name][$delta]['settings'];
+    }
+    else {
+      $item->settings = $item->settings ?: [];
+    }
+
+    $options = [];
+    /** @var \Drupal\block_field\BlockFieldManagerInterface $block_field_manager */
+    $block_field_manager = \Drupal::service('block_field.manager');
+    $definitions = $block_field_manager->getBlockDefinitions();
+    foreach ($definitions as $id => $definition) {
+      // If allowed plugin ids are set then check that this block should be
+      // included.
+      if ($plugin_ids && !isset($plugin_ids[$id])) {
+        // Remove the definition, so that we have an accurate list of allowed
+        // blocks definitions.
+        unset($definitions[$id]);
+        continue;
+      }
+      $category = (string) $definition['category'];
+      $options[$category][$id] = $definition['admin_label'];
+    }
+
+    // Make sure the plugin id is allowed, if not clear all settings.
+    if ($item->plugin_id && !isset($definitions[$item->plugin_id])) {
+      $item->plugin_id = '';
+      $item->setting = [];
+    }
+
+    $element['plugin_id'] = [
+      '#type' => 'select',
+      '#title' => $this->t('Block'),
+      '#options' => $options,
+      '#empty_option' => $this->t('- None -'),
+      '#default_value' => $item->plugin_id,
+      '#required' => $element['#required'],
+    ];
+
+    // Show configuration form if required.
+    if ($this->getSetting('configuration_form') === 'full') {
+      $element['plugin_id']['#ajax'] = [
+        'callback' => [$this, 'configurationForm'],
+        'wrapper' => $settings_id,
+      ];
+
+      // Build configuration container.
+      $element['settings'] = [
+        '#type' => 'container',
+        '#attributes' => ['id' => $settings_id],
+        '#tree' => TRUE,
+      ];
+
+      // If block plugin exists get the block's configuration form.
+      if ($block_instance = $item->getBlock()) {
+        /** @var \Drupal\Core\Plugin\Context\ContextRepositoryInterface $context_repository */
+        $context_repository = \Drupal::service('context.repository');
+        $form_state->setTemporaryValue('gathered_contexts', $context_repository->getAvailableContexts());
+
+        $element['settings'] += $block_instance->buildConfigurationForm([], $form_state);
+
+        // Hide admin label (aka description).
+        if (isset($element['settings']['admin_label'])) {
+          $element['settings']['admin_label']['#access'] = FALSE;
+        }
+
+        $element['#element_validate'] = [[$this, 'validate']];
+      }
+    }
+
+    return $element;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function formSingleElement(FieldItemListInterface $items, $delta, array $element, array &$form, FormStateInterface $form_state) {
+    $element = parent::formSingleElement($items, $delta, $element, $form, $form_state);
+    // For single element set the plugin id title and description to use the
+    // field's title and description.
+    $element['plugin_id']['#title'] = $element['#title'];
+    $element['plugin_id']['#title_display'] = $element['#title_display'];
+    $element['plugin_id']['#description'] = $element['#description'];
+    return $element;
+  }
+
+  /**
+   * Ajax callback that return block configuration setting form.
+   */
+  public function configurationForm(array $form, FormStateInterface $form_state) {
+    $trigger_element = $form_state->getTriggeringElement();
+    $array_parents = $trigger_element['#array_parents'];
+    $array_parents[(count($array_parents) - 1)] = 'settings';
+    $settings_element = NestedArray::getValue($form, $array_parents);
+
+    // Set the label #value to the default block instance's label.
+    $plugin_id = $trigger_element['#value'];
+    /** @var \Drupal\Core\Block\BlockManagerInterface $block_manager */
+    $block_manager = \Drupal::service('plugin.manager.block');
+    /** @var \Drupal\Core\Block\BlockPluginInterface $block_instance */
+    if ($block_instance = $block_manager->createInstance($plugin_id)) {
+      $settings_element['label']['#value'] = $block_instance->label();
+    }
+
+    return $settings_element;
+  }
+
+  /**
+   * Form element validation handler.
+   */
+  public static function validate($element, FormStateInterface $form_state, $form) {
+    /** @var \Drupal\Core\Block\BlockManagerInterface $block_manager */
+    $block_manager = \Drupal::service('plugin.manager.block');
+
+    $values = $form_state->getValues();
+    $plugin_id = NestedArray::getValue($values, $element['plugin_id']['#parents']);
+
+    if (!empty($plugin_id) && $block_manager->hasDefinition($plugin_id)) {
+      // Clean up configuration settings.
+      $settings = NestedArray::getValue($values, $element['settings']['#parents']);
+
+      // Convert label display to FALSE instead of 0. This allow the label to be
+      // hidden.
+      if ($settings['label_display'] === 0) {
+        $settings['label_display'] = FALSE;
+      }
+
+      // Execute block validate configuration.
+      $block_instance = $block_manager->createInstance($plugin_id, $settings);
+      $settings = (new FormState())->setValues($settings);
+      $block_instance->validateConfigurationForm($element['settings'], $settings);
+
+      // Pass along errors from the block validation.
+      foreach ($settings->getErrors() as $key => $error) {
+        $parents = implode('][', $element['settings']['#parents']);
+        // If the block form used setError() then the parents will already be
+        // part of the key since we are passing along the element in the context
+        // of the whole form. If the block form used setErrorByName we need to
+        // add the parents in.
+        if (strpos($key, $parents) === FALSE) {
+          $key = sprintf('%s][%s', $parents, $key);
+        }
+        $form_state->setErrorByName($key, $error);
+      }
+
+      NestedArray::setValue($values, $element['settings']['#parents'], $settings->getValues());
+      $form_state->setValues($values);
+    }
+    else {
+      // Clear all configuration settings.
+      NestedArray::setValue($values, $element['settings']['#parents'], []);
+    }
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function massageFormValues(array $values, array $form, FormStateInterface $form_state) {
+    $field_name = $this->fieldDefinition->getName();
+
+    // Some blocks clean the processed values in form state. However, entity
+    // forms extract the form values twice during submission. For the second
+    // submission to work as well, we need to prevent the removal of the form
+    // values during the first submission.
+    $form_state = clone $form_state;
+
+    foreach ($values as $delta => &$value) {
+      // Execute block submit configuration in order to transform the form
+      // values into block configuration.
+      if (!empty($value['plugin_id']) && !empty($value['settings']) && $block = $this->blockManager->createInstance($value['plugin_id'])) {
+        $elements = &$form[$field_name]['widget'][$value['_original_delta']]['settings'];
+        $subform_state = SubformState::createForSubform($elements, $form_state->getCompleteForm(), $form_state);
+        $block->submitConfigurationForm($elements, $subform_state);
+        // If this block is context-aware, set the context mapping.
+        if ($block instanceof ContextAwarePluginInterface && $block->getContextDefinitions()) {
+          $context_mapping = $subform_state->getValue('context_mapping', []);
+          $block->setContextMapping($context_mapping);
+        }
+        $value['settings'] = $block->getConfiguration();
+      }
+    }
+    return $values;
+  }
+
+}
diff --git a/web/modules/block_field/tests/modules/block_field_test/block_field_test.features.yml b/web/modules/block_field/tests/modules/block_field_test/block_field_test.features.yml
new file mode 100644
index 0000000000000000000000000000000000000000..060a98e7a2f994a5c4cfd7618bc3d4c05edb4adb
--- /dev/null
+++ b/web/modules/block_field/tests/modules/block_field_test/block_field_test.features.yml
@@ -0,0 +1 @@
+required: true
diff --git a/web/modules/block_field/tests/modules/block_field_test/block_field_test.info.yml b/web/modules/block_field/tests/modules/block_field_test/block_field_test.info.yml
new file mode 100644
index 0000000000000000000000000000000000000000..fe380c16585718fece15485d35538cbc99edd344
--- /dev/null
+++ b/web/modules/block_field/tests/modules/block_field_test/block_field_test.info.yml
@@ -0,0 +1,18 @@
+name: 'Block field module tests'
+type: module
+description: 'Support module for Block field that provides a working example of a block field.'
+package: Testing
+# core: 8.x
+dependencies:
+  - block_field
+  - field
+  - menu_ui
+  - node
+  - path
+  - user
+
+# Information added by Drupal.org packaging script on 2018-09-12
+version: '8.x-1.0-alpha8'
+core: '8.x'
+project: 'block_field'
+datestamp: 1536732484
diff --git a/web/modules/block_field/tests/modules/block_field_test/config/install/core.entity_form_display.node.block_field_test.default.yml b/web/modules/block_field/tests/modules/block_field_test/config/install/core.entity_form_display.node.block_field_test.default.yml
new file mode 100644
index 0000000000000000000000000000000000000000..f4bd7095346f2279fe3da447415c2c10318ae197
--- /dev/null
+++ b/web/modules/block_field/tests/modules/block_field_test/config/install/core.entity_form_display.node.block_field_test.default.yml
@@ -0,0 +1,73 @@
+langcode: en
+status: true
+dependencies:
+  config:
+    - field.field.node.block_field_test.field_block_field_test
+    - node.type.block_field_test
+  module:
+    - block_field
+    - path
+id: node.block_field_test.default
+targetEntityType: node
+bundle: block_field_test
+mode: default
+content:
+  created:
+    type: datetime_timestamp
+    weight: 10
+    settings: {  }
+    third_party_settings: {  }
+    region: content
+  field_block_field_test:
+    weight: 32
+    settings:
+      settings: {  }
+      plugin_id: ''
+    third_party_settings: {  }
+    type: block_field_default
+    region: content
+  path:
+    type: path
+    weight: 30
+    settings: {  }
+    third_party_settings: {  }
+    region: content
+  promote:
+    type: boolean_checkbox
+    settings:
+      display_label: true
+    weight: 15
+    third_party_settings: {  }
+    region: content
+  status:
+    type: boolean_checkbox
+    settings:
+      display_label: true
+    weight: 120
+    region: content
+    third_party_settings: {  }
+  sticky:
+    type: boolean_checkbox
+    settings:
+      display_label: true
+    weight: 16
+    third_party_settings: {  }
+    region: content
+  title:
+    type: string_textfield
+    weight: -5
+    settings:
+      size: 60
+      placeholder: ''
+    third_party_settings: {  }
+    region: content
+  uid:
+    type: entity_reference_autocomplete
+    weight: 5
+    settings:
+      match_operator: CONTAINS
+      size: 60
+      placeholder: ''
+    third_party_settings: {  }
+    region: content
+hidden: {  }
diff --git a/web/modules/block_field/tests/modules/block_field_test/config/install/core.entity_view_display.node.block_field_test.default.yml b/web/modules/block_field/tests/modules/block_field_test/config/install/core.entity_view_display.node.block_field_test.default.yml
new file mode 100644
index 0000000000000000000000000000000000000000..a9b30494d873a3f290a258c2a431ba5109040c0e
--- /dev/null
+++ b/web/modules/block_field/tests/modules/block_field_test/config/install/core.entity_view_display.node.block_field_test.default.yml
@@ -0,0 +1,27 @@
+langcode: en
+status: true
+dependencies:
+  config:
+    - field.field.node.block_field_test.field_block_field_test
+    - node.type.block_field_test
+  module:
+    - block_field
+    - user
+id: node.block_field_test.default
+targetEntityType: node
+bundle: block_field_test
+mode: default
+content:
+  field_block_field_test:
+    weight: 102
+    label: above
+    settings: {  }
+    third_party_settings: {  }
+    type: block_field
+    region: content
+  links:
+    weight: 100
+    settings: {  }
+    third_party_settings: {  }
+    region: content
+hidden: {  }
diff --git a/web/modules/block_field/tests/modules/block_field_test/config/install/core.entity_view_display.node.block_field_test.teaser.yml b/web/modules/block_field/tests/modules/block_field_test/config/install/core.entity_view_display.node.block_field_test.teaser.yml
new file mode 100644
index 0000000000000000000000000000000000000000..8aafc60de4fa5cb174ed690d901ae7fbff545916
--- /dev/null
+++ b/web/modules/block_field/tests/modules/block_field_test/config/install/core.entity_view_display.node.block_field_test.teaser.yml
@@ -0,0 +1,19 @@
+langcode: en
+status: true
+dependencies:
+  config:
+    - core.entity_view_mode.node.teaser
+    - field.field.node.block_field_test.field_block_field_test
+    - node.type.block_field_test
+  module:
+    - user
+id: node.block_field_test.teaser
+targetEntityType: node
+bundle: block_field_test
+mode: teaser
+content:
+  links:
+    weight: 100
+    region: content
+hidden:
+  field_block_field_test: true
diff --git a/web/modules/block_field/tests/modules/block_field_test/config/install/field.field.node.block_field_test.field_block_field_test.yml b/web/modules/block_field/tests/modules/block_field_test/config/install/field.field.node.block_field_test.field_block_field_test.yml
new file mode 100644
index 0000000000000000000000000000000000000000..b5f05cf0f27845c659cda2150f566f3b5c545f82
--- /dev/null
+++ b/web/modules/block_field/tests/modules/block_field_test/config/install/field.field.node.block_field_test.field_block_field_test.yml
@@ -0,0 +1,21 @@
+langcode: en
+status: true
+dependencies:
+  config:
+    - field.storage.node.field_block_field_test
+    - node.type.block_field_test
+  module:
+    - block_field
+id: node.block_field_test.field_block_field_test
+field_name: field_block_field_test
+entity_type: node
+bundle: block_field_test
+label: 'Block field test'
+description: ''
+required: false
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings:
+  plugin_ids: {  }
+field_type: block_field
diff --git a/web/modules/block_field/tests/modules/block_field_test/config/install/field.storage.node.field_block_field_test.yml b/web/modules/block_field/tests/modules/block_field_test/config/install/field.storage.node.field_block_field_test.yml
new file mode 100644
index 0000000000000000000000000000000000000000..e963be06e9d8e86acb165126b2fa521c74ffd30d
--- /dev/null
+++ b/web/modules/block_field/tests/modules/block_field_test/config/install/field.storage.node.field_block_field_test.yml
@@ -0,0 +1,18 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - block_field
+    - node
+id: node.field_block_field_test
+field_name: field_block_field_test
+entity_type: node
+type: block_field
+settings: {  }
+module: block_field
+locked: false
+cardinality: -1
+translatable: true
+indexes: {  }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/web/modules/block_field/tests/modules/block_field_test/config/install/node.type.block_field_test.yml b/web/modules/block_field/tests/modules/block_field_test/config/install/node.type.block_field_test.yml
new file mode 100644
index 0000000000000000000000000000000000000000..9e0f8039f02bcf9741c6a6d59e17661ac86bdcff
--- /dev/null
+++ b/web/modules/block_field/tests/modules/block_field_test/config/install/node.type.block_field_test.yml
@@ -0,0 +1,17 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - menu_ui
+third_party_settings:
+  menu_ui:
+    available_menus:
+      - main
+    parent: 'main:'
+name: 'Block field test'
+type: block_field_test
+description: ''
+help: ''
+new_revision: false
+preview_mode: 1
+display_submitted: true
diff --git a/web/modules/block_field/tests/modules/block_field_test/src/Plugin/Block/BlockFieldTestAuthenticatedBlock.php b/web/modules/block_field/tests/modules/block_field_test/src/Plugin/Block/BlockFieldTestAuthenticatedBlock.php
new file mode 100644
index 0000000000000000000000000000000000000000..d9c895ac401f2894d001803587969265bf77dbd3
--- /dev/null
+++ b/web/modules/block_field/tests/modules/block_field_test/src/Plugin/Block/BlockFieldTestAuthenticatedBlock.php
@@ -0,0 +1,53 @@
+<?php
+
+namespace Drupal\block_field_test\Plugin\Block;
+
+use Drupal\Core\Access\AccessResult;
+use Drupal\Core\Block\BlockBase;
+use Drupal\Core\Session\AccountInterface;
+
+/**
+ * Provides a 'Block field test authenticated' block.
+ *
+ * @Block(
+ *   id = "block_field_test_authenticated",
+ *   admin_label = @Translation("You are logged in as..."),
+ *   category = @Translation("Block field test")
+ * )
+ */
+class BlockFieldTestAuthenticatedBlock extends BlockBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function build() {
+    return [
+      '#theme' => 'username',
+      '#account' => \Drupal::currentUser()->getAccount(),
+      '#prefix' => '<p>',
+      '#suffix' => '</p>',
+    ];
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function blockAccess(AccountInterface $account) {
+    return AccessResult::allowedIf($account->isAuthenticated());
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getCacheContexts() {
+    return ['user'];
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getCacheTags() {
+    return ['user:' . \Drupal::currentUser()->id()];
+  }
+
+}
diff --git a/web/modules/block_field/tests/modules/block_field_test/src/Plugin/Block/BlockFieldTestContentBlock.php b/web/modules/block_field/tests/modules/block_field_test/src/Plugin/Block/BlockFieldTestContentBlock.php
new file mode 100644
index 0000000000000000000000000000000000000000..26ecf067f2572e8fa0ee6ef29a692efcd8150ee0
--- /dev/null
+++ b/web/modules/block_field/tests/modules/block_field_test/src/Plugin/Block/BlockFieldTestContentBlock.php
@@ -0,0 +1,57 @@
+<?php
+
+namespace Drupal\block_field_test\Plugin\Block;
+
+use Drupal\Core\Block\BlockBase;
+use Drupal\Core\Form\FormStateInterface;
+
+/**
+ * Provides a 'Block field test content' block.
+ *
+ * @Block(
+ *   id = "block_field_test_content",
+ *   admin_label = @Translation("Block field test content"),
+ *   category = @Translation("Block field test")
+ * )
+ */
+class BlockFieldTestContentBlock extends BlockBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function defaultConfiguration() {
+    return [
+      'content' => $this->t('A default value. This block was created at @time', ['@time' => date('Y-m-d h:i:sa')]),
+    ];
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function blockForm($form, FormStateInterface $form_state) {
+    $form['content'] = [
+      '#type' => 'textarea',
+      '#title' => $this->t('Content'),
+      '#default_value' => $this->configuration['content'],
+    ];
+    return $form;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function blockSubmit($form, FormStateInterface $form_state) {
+    $this->configuration['content'] = $form_state->getValue('content');
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function build() {
+    return [
+      '#type' => 'markup',
+      '#markup' => $this->configuration['content'],
+    ];
+  }
+
+}
diff --git a/web/modules/block_field/tests/modules/block_field_test/src/Plugin/Block/BlockFieldTestTimeBlock.php b/web/modules/block_field/tests/modules/block_field_test/src/Plugin/Block/BlockFieldTestTimeBlock.php
new file mode 100644
index 0000000000000000000000000000000000000000..e7398deda2016e676415bb913919bb8a8bf36c76
--- /dev/null
+++ b/web/modules/block_field/tests/modules/block_field_test/src/Plugin/Block/BlockFieldTestTimeBlock.php
@@ -0,0 +1,35 @@
+<?php
+
+namespace Drupal\block_field_test\Plugin\Block;
+
+use Drupal\Core\Block\BlockBase;
+
+/**
+ * Provides a 'Block field test time' block.
+ *
+ * @Block(
+ *   id = "block_field_test_time",
+ *   admin_label = @Translation("The time is..."),
+ *   category = @Translation("Block field test")
+ * )
+ */
+class BlockFieldTestTimeBlock extends BlockBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function build() {
+    return [
+      '#type' => 'markup',
+      '#markup' => date('H:i:s') . ' (' . time() . ')',
+    ];
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getCacheMaxAge() {
+    return 0;
+  }
+
+}
diff --git a/web/modules/block_field/tests/modules/block_field_test/src/Plugin/Block/BlockFieldTestValidationBlock.php b/web/modules/block_field/tests/modules/block_field_test/src/Plugin/Block/BlockFieldTestValidationBlock.php
new file mode 100644
index 0000000000000000000000000000000000000000..476c4a291b80d892474bc6c1318984a2aea40825
--- /dev/null
+++ b/web/modules/block_field/tests/modules/block_field_test/src/Plugin/Block/BlockFieldTestValidationBlock.php
@@ -0,0 +1,69 @@
+<?php
+
+namespace Drupal\block_field_test\Plugin\Block;
+
+use Drupal\Core\Block\BlockBase;
+use Drupal\Core\Form\FormStateInterface;
+
+/**
+ * Provides a 'Block field test validation' block.
+ *
+ * @Block(
+ *   id = "block_field_test_validation",
+ *   admin_label = @Translation("Block field test validation"),
+ *   category = @Translation("Block field test")
+ * )
+ */
+class BlockFieldTestValidationBlock extends BlockBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function defaultConfiguration() {
+    return [
+      'content' => '',
+    ];
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function blockForm($form, FormStateInterface $form_state) {
+    $form['content'] = [
+      '#type' => 'textfield',
+      '#title' => $this->t('Content'),
+      '#default_value' => $this->configuration['content'],
+    ];
+    return $form;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function blockSubmit($form, FormStateInterface $form_state) {
+    $this->configuration['content'] = $form_state->getValue('content');
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function blockValidate($form, FormStateInterface $form_state) {
+    if ($form_state->getValue('content') == 'error by name') {
+      $form_state->setErrorByName('content', 'Come ere boi!');
+    }
+    if ($form_state->getValue('content') == 'error by element') {
+      $form_state->setError($form['content'], 'Gimmie them toez!');
+    }
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function build() {
+    return [
+      '#type' => 'markup',
+      '#markup' => $this->configuration['content'],
+    ];
+  }
+
+}
diff --git a/web/modules/block_field/tests/modules/block_field_widget_test/block_field_widget_test.info.yml b/web/modules/block_field/tests/modules/block_field_widget_test/block_field_widget_test.info.yml
new file mode 100644
index 0000000000000000000000000000000000000000..80150bc4983ccc8cbf34e7d6bf5a5fb905b9b48f
--- /dev/null
+++ b/web/modules/block_field/tests/modules/block_field_widget_test/block_field_widget_test.info.yml
@@ -0,0 +1,19 @@
+name: 'Block field module widget tests'
+type: module
+description: 'Support module for block field that provides some default configuration to test the field widget.'
+package: Testing
+# core: 8.x
+dependencies:
+  - block
+  - block_field
+  - field
+  - node
+  - path
+  - user
+  - views
+
+# Information added by Drupal.org packaging script on 2018-09-12
+version: '8.x-1.0-alpha8'
+core: '8.x'
+project: 'block_field'
+datestamp: 1536732484
diff --git a/web/modules/block_field/tests/modules/block_field_widget_test/config/install/core.entity_form_display.node.block_node.default.yml b/web/modules/block_field/tests/modules/block_field_widget_test/config/install/core.entity_form_display.node.block_node.default.yml
new file mode 100644
index 0000000000000000000000000000000000000000..0cc9252ba2f0b9b8eb921a2c08539bbf6365a4c0
--- /dev/null
+++ b/web/modules/block_field/tests/modules/block_field_widget_test/config/install/core.entity_form_display.node.block_node.default.yml
@@ -0,0 +1,73 @@
+langcode: en
+status: true
+dependencies:
+  config:
+    - field.field.node.block_node.field_block
+    - node.type.block_node
+  module:
+    - block_field
+    - path
+id: node.block_node.default
+targetEntityType: node
+bundle: block_node
+mode: default
+content:
+  created:
+    type: datetime_timestamp
+    weight: 10
+    settings: {  }
+    third_party_settings: {  }
+    region: content
+  field_block:
+    weight: 31
+    settings:
+      plugin_id: ''
+      settings: {  }
+    third_party_settings: {  }
+    type: block_field_default
+    region: content
+  path:
+    type: path
+    weight: 30
+    region: content
+    settings: {  }
+    third_party_settings: {  }
+  promote:
+    type: boolean_checkbox
+    settings:
+      display_label: true
+    weight: 15
+    third_party_settings: {  }
+    region: content
+  status:
+    type: boolean_checkbox
+    settings:
+      display_label: true
+    weight: 120
+    region: content
+    third_party_settings: {  }
+  sticky:
+    type: boolean_checkbox
+    settings:
+      display_label: true
+    weight: 16
+    third_party_settings: {  }
+    region: content
+  title:
+    type: string_textfield
+    weight: -5
+    settings:
+      size: 60
+      placeholder: ''
+    third_party_settings: {  }
+    region: content
+  uid:
+    type: entity_reference_autocomplete
+    weight: 5
+    settings:
+      match_operator: CONTAINS
+      size: 60
+      placeholder: ''
+    third_party_settings: {  }
+    region: content
+hidden: {  }
diff --git a/web/modules/block_field/tests/modules/block_field_widget_test/config/install/core.entity_view_display.node.block_node.default.yml b/web/modules/block_field/tests/modules/block_field_widget_test/config/install/core.entity_view_display.node.block_node.default.yml
new file mode 100644
index 0000000000000000000000000000000000000000..10e2c62641aedd3964fdcb4213a20a2caca44994
--- /dev/null
+++ b/web/modules/block_field/tests/modules/block_field_widget_test/config/install/core.entity_view_display.node.block_node.default.yml
@@ -0,0 +1,25 @@
+langcode: en
+status: true
+dependencies:
+  config:
+    - field.field.node.block_node.field_block
+    - node.type.block_node
+  module:
+    - block_field
+    - user
+id: node.block_node.default
+targetEntityType: node
+bundle: block_node
+mode: default
+content:
+  field_block:
+    weight: 101
+    label: above
+    settings: {  }
+    third_party_settings: {  }
+    type: block_field
+    region: content
+  links:
+    weight: 100
+    region: content
+hidden: {  }
diff --git a/web/modules/block_field/tests/modules/block_field_widget_test/config/install/field.field.node.block_node.field_block.yml b/web/modules/block_field/tests/modules/block_field_widget_test/config/install/field.field.node.block_node.field_block.yml
new file mode 100644
index 0000000000000000000000000000000000000000..35e3279ba2a1d328dc6cc9219de188549c80beca
--- /dev/null
+++ b/web/modules/block_field/tests/modules/block_field_widget_test/config/install/field.field.node.block_node.field_block.yml
@@ -0,0 +1,21 @@
+langcode: en
+status: true
+dependencies:
+  config:
+    - field.storage.node.field_block
+    - node.type.block_node
+  module:
+    - block_field
+id: node.block_node.field_block
+field_name: field_block
+entity_type: node
+bundle: block_node
+label: Block
+description: ''
+required: false
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings:
+  plugin_ids: {  }
+field_type: block_field
diff --git a/web/modules/block_field/tests/modules/block_field_widget_test/config/install/field.storage.node.field_block.yml b/web/modules/block_field/tests/modules/block_field_widget_test/config/install/field.storage.node.field_block.yml
new file mode 100644
index 0000000000000000000000000000000000000000..867506d72ef79514e2ffb363a9bdc9bf1c3ff185
--- /dev/null
+++ b/web/modules/block_field/tests/modules/block_field_widget_test/config/install/field.storage.node.field_block.yml
@@ -0,0 +1,18 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - block_field
+    - node
+id: node.field_block
+field_name: field_block
+entity_type: node
+type: block_field
+settings: {  }
+module: block_field
+locked: false
+cardinality: 1
+translatable: true
+indexes: {  }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/web/modules/block_field/tests/modules/block_field_widget_test/config/install/node.type.block_node.yml b/web/modules/block_field/tests/modules/block_field_widget_test/config/install/node.type.block_node.yml
new file mode 100644
index 0000000000000000000000000000000000000000..fb3fa2d4a2250521995d7e1f127aabcf6284af1a
--- /dev/null
+++ b/web/modules/block_field/tests/modules/block_field_widget_test/config/install/node.type.block_node.yml
@@ -0,0 +1,10 @@
+langcode: en
+status: true
+dependencies: {  }
+name: 'Block node'
+type: block_node
+description: ''
+help: ''
+new_revision: false
+preview_mode: 0
+display_submitted: false
diff --git a/web/modules/block_field/tests/modules/block_field_widget_test/config/install/node.type.item.yml b/web/modules/block_field/tests/modules/block_field_widget_test/config/install/node.type.item.yml
new file mode 100644
index 0000000000000000000000000000000000000000..b3f7405d3dbfdef8c64e339c9dfde8cfadbba19d
--- /dev/null
+++ b/web/modules/block_field/tests/modules/block_field_widget_test/config/install/node.type.item.yml
@@ -0,0 +1,10 @@
+langcode: en
+status: true
+dependencies: {  }
+name: Item
+type: item
+description: ''
+help: ''
+new_revision: false
+preview_mode: 1
+display_submitted: true
diff --git a/web/modules/block_field/tests/modules/block_field_widget_test/config/optional/views.view.items.yml b/web/modules/block_field/tests/modules/block_field_widget_test/config/optional/views.view.items.yml
new file mode 100644
index 0000000000000000000000000000000000000000..407488574edfd6038c5d666dabaefc54ca53eba0
--- /dev/null
+++ b/web/modules/block_field/tests/modules/block_field_widget_test/config/optional/views.view.items.yml
@@ -0,0 +1,215 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - node
+    - user
+id: items
+label: Items
+module: views
+description: ''
+tag: ''
+base_table: node_field_data
+base_field: nid
+core: 8.x
+display:
+  default:
+    display_plugin: default
+    id: default
+    display_title: Master
+    position: 0
+    display_options:
+      access:
+        type: perm
+        options:
+          perm: 'access content'
+      cache:
+        type: tag
+        options: {  }
+      query:
+        type: views_query
+        options:
+          disable_sql_rewrite: false
+          distinct: false
+          replica: false
+          query_comment: ''
+          query_tags: {  }
+      exposed_form:
+        type: basic
+        options:
+          submit_button: Toepassen
+          reset_button: false
+          reset_button_label: Reset
+          exposed_sorts_label: 'Sorteren op'
+          expose_sort_order: true
+          sort_asc_label: Oplopend
+          sort_desc_label: Aflopend
+      pager:
+        type: some
+        options:
+          items_per_page: 1
+          offset: 0
+      style:
+        type: default
+        options:
+          grouping: {  }
+          row_class: ''
+          default_row_class: true
+          uses_fields: false
+      row:
+        type: fields
+        options:
+          inline: {  }
+          separator: ''
+          hide_empty: false
+          default_field_elements: true
+      fields:
+        title:
+          id: title
+          table: node_field_data
+          field: title
+          entity_type: node
+          entity_field: title
+          label: ''
+          alter:
+            alter_text: false
+            make_link: false
+            absolute: false
+            trim: false
+            word_boundary: false
+            ellipsis: false
+            strip_tags: false
+            html: false
+          hide_empty: false
+          empty_zero: false
+          settings:
+            link_to_entity: true
+          plugin_id: field
+          relationship: none
+          group_type: group
+          admin_label: ''
+          exclude: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: true
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_alter_empty: true
+          click_sort_column: value
+          type: string
+          group_column: value
+          group_columns: {  }
+          group_rows: true
+          delta_limit: 0
+          delta_offset: 0
+          delta_reversed: false
+          delta_first_last: false
+          multi_type: separator
+          separator: ', '
+          field_api_classes: false
+      filters:
+        status:
+          value: '1'
+          table: node_field_data
+          field: status
+          plugin_id: boolean
+          entity_type: node
+          entity_field: status
+          id: status
+          expose:
+            operator: ''
+          group: 1
+      sorts:
+        created:
+          id: created
+          table: node_field_data
+          field: created
+          order: DESC
+          entity_type: node
+          entity_field: created
+          plugin_id: date
+          relationship: none
+          group_type: group
+          admin_label: ''
+          exposed: false
+          expose:
+            label: ''
+          granularity: second
+      header: {  }
+      footer: {  }
+      empty: {  }
+      relationships: {  }
+      arguments:
+        nid:
+          id: nid
+          table: node_field_data
+          field: nid
+          relationship: none
+          group_type: group
+          admin_label: Exclude
+          default_action: ignore
+          exception:
+            value: all
+            title_enable: false
+            title: All
+          title_enable: false
+          title: ''
+          default_argument_type: fixed
+          default_argument_options:
+            argument: ''
+          default_argument_skip_url: false
+          summary_options:
+            base_path: ''
+            count: true
+            items_per_page: 25
+            override: false
+          summary:
+            sort_order: asc
+            number_of_records: 0
+            format: default_summary
+          specify_validation: true
+          validate:
+            type: 'entity:node'
+            fail: 'not found'
+          validate_options:
+            operation: view
+            multiple: 0
+            bundles: {  }
+            access: false
+          break_phrase: false
+          not: true
+          entity_type: node
+          entity_field: nid
+          plugin_id: node_nid
+      display_extenders: {  }
+      title: Items
+    cache_metadata:
+      max-age: -1
+      contexts:
+        - 'languages:language_content'
+        - 'languages:language_interface'
+        - url
+        - 'user.node_grants:view'
+        - user.permissions
+      tags: {  }
+  block_1:
+    display_plugin: block
+    id: block_1
+    display_title: Items
+    position: 1
+    display_options:
+      display_extenders: {  }
+      block_description: items
+    cache_metadata:
+      max-age: -1
+      contexts:
+        - 'languages:language_content'
+        - 'languages:language_interface'
+        - url
+        - 'user.node_grants:view'
+        - user.permissions
+      tags: {  }
diff --git a/web/modules/block_field/tests/src/Functional/BlockFieldTest.php b/web/modules/block_field/tests/src/Functional/BlockFieldTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..09677eeefd467d3eb8c2aa6d852d9fb11a927c8c
--- /dev/null
+++ b/web/modules/block_field/tests/src/Functional/BlockFieldTest.php
@@ -0,0 +1,166 @@
+<?php
+
+namespace Drupal\Tests\block_field\Functional;
+
+use Drupal\Tests\BrowserTestBase;
+
+/**
+ * Tests block field widgets and formatters.
+ *
+ * @group block_field
+ */
+class BlockFieldTest extends BrowserTestBase {
+
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = [
+    'node',
+    'user',
+    'block',
+    'block_field',
+    'block_field_test',
+    'field_ui',
+  ];
+
+  /**
+   * Tests block field.
+   */
+  public function testBlockField() {
+    $assert = $this->assertSession();
+
+    $admin_user = $this->drupalCreateUser([
+      'access content',
+      'administer nodes',
+      'administer content types',
+      'bypass node access',
+      'administer node fields',
+    ]);
+    $this->drupalLogin($admin_user);
+
+    // Create block field test using the three test blocks.
+    // Check that add more and ajax callbacks are working as expected.
+    $this->drupalPostForm('node/add/block_field_test', [
+      'title[0][value]' => 'Block field test',
+    ], 'Add another item');
+    $this->drupalPostForm(NULL, [], 'Add another item');
+    $this->drupalPostForm(NULL, [
+      'field_block_field_test[0][plugin_id]' => 'block_field_test_authenticated',
+      'field_block_field_test[1][plugin_id]' => 'block_field_test_content',
+      'field_block_field_test[2][plugin_id]' => 'block_field_test_time',
+    ], 'Add another item');
+    $this->drupalPostForm(NULL, [
+      'field_block_field_test[0][plugin_id]' => 'block_field_test_authenticated',
+      'field_block_field_test[1][plugin_id]' => 'block_field_test_content',
+      'field_block_field_test[2][plugin_id]' => 'block_field_test_time',
+    ], 'Add another item');
+    $this->drupalPostForm(NULL, [], 'Save');
+
+    // Check blocks displayed to authenticated.
+    $node = $this->drupalGetNodeByTitle('Block field test');
+    $this->drupalGet($node->toUrl());
+    $selector = '.field--name-field-block-field-test';
+    $assert->elementExists('css', $selector);
+    $assert->elementContains('css', $selector, '<div class="field__label">Block field test</div>');
+    $assert->elementContains('css', $selector, '<h2>You are logged in as...</h2>');
+    $assert->elementTextContains('css', $selector, $admin_user->label());
+    $assert->elementContains('css', $selector, '<h2>Block field test content</h2>');
+    $assert->elementTextContains('css', $selector, 'This block was created at');
+    $assert->elementContains('css', $selector, '<h2>The time is...</h2>');
+    $assert->responseMatches('/\d\d:\d\d:\d\d/');
+
+    // Check adjusting block weights maintains plugin settings.
+    $this->drupalGet($node->toUrl('edit-form'));
+    // Switch the position of block 1 and 2.
+    $this->drupalPostForm(NULL, [
+      'field_block_field_test[0][_weight]' => 1,
+      'field_block_field_test[1][_weight]' => 0,
+    ], 'Save');
+    $this->drupalGet($node->toUrl('edit-form'));
+    // Plugin id and label should be switched.
+    $assert->fieldValueEquals('field_block_field_test[0][plugin_id]', 'block_field_test_content');
+    $assert->fieldValueEquals('field_block_field_test[0][settings][label]', 'Block field test content');
+    $assert->fieldValueEquals('field_block_field_test[1][plugin_id]', 'block_field_test_authenticated');
+    $assert->fieldValueEquals('field_block_field_test[1][settings][label]', 'You are logged in as...');
+
+    // Create a block_field_test node.
+    $block_node = $this->drupalCreateNode([
+      'type' => 'block_field_test',
+    ]);
+
+    // Check authenticated block.
+    $block_node->field_block_field_test->plugin_id = 'block_field_test_authenticated';
+    $block_node->field_block_field_test->settings = [
+      'label' => 'Authenticated',
+      'label_display' => TRUE,
+    ];
+    $block_node->save();
+    $this->drupalGet($block_node->toUrl());
+    $assert->elementContains('css', $selector, '<h2>Authenticated</h2>');
+    $assert->elementTextContains('css', $selector, $admin_user->label());
+
+    // Check block_field_test_authenticated cache dependency is respected when
+    // the user's name is updated.
+    $admin_user->setUsername('admin_user');
+    $admin_user->save();
+    $this->drupalGet($block_node->toUrl());
+    $assert->elementContains('css', $selector, '<h2>Authenticated</h2>');
+    $assert->elementTextContains('css', $selector, 'admin_user');
+
+    // Check authenticated block is not visible to anonymous users.
+    $this->drupalLogout();
+    $this->drupalGet($block_node->toUrl());
+    $assert->elementNotExists('css', $selector);
+
+    // Check content block.
+    $block_node->field_block_field_test->plugin_id = 'block_field_test_content';
+    $block_node->field_block_field_test->settings = [
+      'label' => 'Hello',
+      'label_display' => TRUE,
+      'content' => '<p>World</p>',
+    ];
+    $block_node->save();
+
+    $this->drupalGet($block_node->toUrl());
+    $assert->elementContains('css', $selector, '<h2>Hello</h2>');
+    $assert->elementContains('css', $selector, '<p>World</p>');
+
+    // ISSUE: Drupal's page cache it not respecting the time block max age,
+    // so we need to log in to bypass page caching.
+    $this->drupalLogin($admin_user);
+
+    // Check time block.
+    $block_node->field_block_field_test->plugin_id = 'block_field_test_time';
+    $block_node->field_block_field_test->settings = [
+      'label' => 'Time',
+      'label_display' => TRUE,
+    ];
+    $block_node->save();
+
+    // Check that time is set.
+    $this->drupalGet($block_node->toUrl());
+    $assert->responseMatches('/\d\d:\d\d:\d\d \(\d+\)/');
+
+    // Get the current time.
+    preg_match('/\d\d:\d\d:\d\d \(\d+\)/', $this->getSession()->getPage()->getContent(), $match);
+    $time = $match[0];
+    $assert->responseContains($time);
+
+    // Have delay test one second so that the time is updated.
+    sleep(1);
+
+    // Check that time is never cached by reloading the page.
+    $this->drupalGet($block_node->toUrl());
+    $assert->responseMatches('/\d\d:\d\d:\d\d \(\d+\)/');
+    $assert->responseNotContains($time);
+
+    $this->drupalGet('admin/structure/types/manage/block_field_test/fields/node.block_field_test.field_block_field_test');
+    $this->drupalPostForm(NULL, ['settings[plugin_ids][page_title_block]' => FALSE], 'Save settings');
+
+    $this->drupalGet('admin/structure/types/manage/block_field_test/fields/node.block_field_test.field_block_field_test');
+    $assert->statusCodeEquals(200);
+  }
+
+}
diff --git a/web/modules/block_field/tests/src/Functional/WidgetTest.php b/web/modules/block_field/tests/src/Functional/WidgetTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..51d15d8ec6c0c390e2a58625cf2d8a1a8e1787a7
--- /dev/null
+++ b/web/modules/block_field/tests/src/Functional/WidgetTest.php
@@ -0,0 +1,183 @@
+<?php
+
+namespace Drupal\Tests\block_field\Functional;
+
+use Drupal\Tests\BrowserTestBase;
+
+/**
+ * Test the block field widget.
+ *
+ * @group block_field
+ */
+class WidgetTest extends BrowserTestBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public static $modules = [
+    'node',
+    'user',
+    'block',
+    'block_field',
+    'block_field_test',
+    'block_field_widget_test',
+    'field_ui',
+  ];
+
+  /**
+   * The test block node.
+   *
+   * @var \Drupal\node\NodeInterface
+   */
+  protected $blockNode;
+
+  /**
+   * {@inheritdoc}
+   */
+  public function setUp() {
+    parent::setUp();
+
+    $this->drupalLogin($this->drupalCreateUser([
+      'access administration pages',
+      'access content',
+      'administer content types',
+      'administer node fields',
+      'administer node form display',
+      'administer nodes',
+      'bypass node access',
+    ]));
+
+    $this->drupalPostForm('node/add/block_node', [
+      'title[0][value]' => 'Block field test',
+      'field_block[0][plugin_id]' => 'views_block:items-block_1',
+    ], 'Save');
+
+    $this->blockNode = $this->drupalGetNodeByTitle('Block field test');
+  }
+
+  /**
+   * Test block settings are stored correctly.
+   */
+  public function testBlockSettingsAreStoredCorrectly() {
+    $page = $this->getSession()->getPage();
+    $assert_session = $this->assertSession();
+
+    $items = $this->createDummyNodes('item', 5);
+
+    $this->drupalGet($this->blockNode->toUrl('edit-form'));
+    $assert_session->checkboxChecked('Display title');
+    $assert_session->checkboxNotChecked('Override title');
+    $items_per_page_element = $page->findField('Items per block');
+    $this->assertNotNull($items_per_page_element);
+    $this->assertEquals('none', $items_per_page_element->getValue());
+    $this->assertContains('1 (default setting)', $items_per_page_element->getText());
+    $page->selectFieldOption('Items per block', 10);
+    // This view has a contextual filter to exclude the node from the URL from
+    // showing up if the context is present. Initially we do not choose that
+    // context when placing the block.
+    $exclude_element = $page->findField('Exclude');
+    $this->assertNotNull($exclude_element);
+    $this->assertEmpty($exclude_element->getValue());
+    // Save the node and check the view items.
+    $page->pressButton('Save');
+    $assert_session->pageTextContains("Block node {$this->blockNode->getTitle()} has been updated");
+
+    foreach ($items as $item) {
+      $this->assertSession()->pageTextContains($item->getTitle());
+    }
+    // The node we are visiting shows up in the views results.
+    $first_result = $this->assertSession()->elementExists('css', '.view-items .view-content > .views-row:nth-child(1)');
+    $this->assertEquals('Block field test', $first_result->getText());
+
+    // Select the context to exclude the node from the URL and try again.
+    $this->drupalGet($this->blockNode->toUrl('edit-form'));
+    $page->selectFieldOption('Exclude', 'Node from URL');
+    $page->pressButton('Save');
+    $assert_session->pageTextContains("Block node {$this->blockNode->getTitle()} has been updated");
+
+    foreach ($items as $item) {
+      $this->assertSession()->pageTextContains($item->getTitle());
+    }
+    // The node we are visiting does not show up anymore.
+    $first_result = $this->assertSession()->elementExists('css', '.view-items .view-content > .views-row:nth-child(1)');
+    $this->assertNotEquals('Block field test', $first_result->getText());
+    $this->assertEquals($items[0]->getTitle(), $first_result->getText());
+  }
+
+  /**
+   * Test configuration form options.
+   */
+  public function testConfigurationFormOptions() {
+    $assert = $this->assertSession();
+
+    // Configuration form: full (the default).
+    $this->drupalGet($this->blockNode->toUrl('edit-form'));
+    $assert->fieldExists('field_block[0][settings][label_display]');
+    $assert->fieldExists('field_block[0][settings][override][items_per_page]');
+    $assert->fieldExists('field_block[0][settings][views_label_checkbox]');
+    $assert->fieldExists('field_block[0][settings][views_label]');
+
+    // Configuration form: hidden.
+    $this->drupalGet('admin/structure/types/manage/block_node/form-display');
+    $this->drupalPostForm(NULL, [], 'field_block_settings_edit');
+    $edit = [
+      'fields[field_block][settings_edit_form][settings][configuration_form]' => 'hidden',
+    ];
+    $this->drupalPostForm(NULL, $edit, 'Save');
+    $this->drupalGet($this->blockNode->toUrl('edit-form'));
+    $assert->fieldNotExists('field_block[0][settings][label_display]');
+    $assert->fieldNotExists('field_block[0][settings][override][items_per_page]');
+    $assert->fieldNotExists('field_block[0][settings][views_label_checkbox]');
+    $assert->fieldNotExists('field_block[0][settings][views_label]');
+  }
+
+  /**
+   * Tests that validation errors from the block form are bubbled up.
+   */
+  public function testBlockFieldValidation() {
+    $assert = $this->assertSession();
+    $this->drupalPostForm('node/add/block_node', [
+      'title[0][value]' => 'Block field validation test',
+      'field_block[0][plugin_id]' => 'block_field_test_validation',
+    ], 'Save');
+
+    $node = $this->drupalGetNodeByTitle('Block field validation test');
+    $this->drupalGet($node->toUrl('edit-form'));
+    $this->submitForm([
+      'field_block[0][settings][content]' => 'error by name',
+    ], 'Save');
+    $assert->pageTextContains('Come ere boi!');
+    $assert->elementAttributeContains('css', 'input[name="field_block[0][settings][content]"]', 'class', 'error');
+    $this->submitForm([
+      'field_block[0][settings][content]' => 'error by element',
+    ], 'Save');
+    $assert->pageTextContains('Gimmie them toez!');
+    $assert->elementAttributeContains('css', 'input[name="field_block[0][settings][content]"]', 'class', 'error');
+    $this->submitForm([
+      'field_block[0][settings][content]' => 'something else',
+    ], 'Save');
+    $assert->pageTextContains('Block node Block field validation test has been updated.');
+  }
+
+  /**
+   * Create dummy nodes.
+   *
+   * @param string $bundle
+   *   The bundle type to create.
+   * @param int $numberOfNodes
+   *   The number of nodes to create.
+   *
+   * @return \Drupal\node\NodeInterface[]
+   *   And array of created nodes.
+   */
+  private function createDummyNodes($bundle, $numberOfNodes) {
+    $nodes = [];
+
+    for ($i = 0; $i < $numberOfNodes; $i++) {
+      $nodes[] = $this->createNode(['type' => $bundle]);
+    }
+
+    return $nodes;
+  }
+
+}
diff --git a/web/modules/entity_clone/LICENSE.txt b/web/modules/entity_clone/LICENSE.txt
new file mode 100644
index 0000000000000000000000000000000000000000..d159169d1050894d3ea3b98e1c965c4058208fe1
--- /dev/null
+++ b/web/modules/entity_clone/LICENSE.txt
@@ -0,0 +1,339 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                            NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
diff --git a/web/modules/entity_clone/config/schema/entity_clone.settings.schema.yml b/web/modules/entity_clone/config/schema/entity_clone.settings.schema.yml
new file mode 100644
index 0000000000000000000000000000000000000000..602453c34951a139657c0b58169b375a6d6ab93c
--- /dev/null
+++ b/web/modules/entity_clone/config/schema/entity_clone.settings.schema.yml
@@ -0,0 +1,88 @@
+entity_clone.settings:
+  type: config_object
+  label: 'Module entity_clone settings'
+  mapping:
+    form_settings:
+      type: mapping
+      mapping:
+        taxonomy_term:
+          type: mapping
+          mapping:
+            default_value:
+              type: boolean
+            disable:
+              type: boolean
+            hidden:
+              type: boolean
+        block_content:
+          type: mapping
+          mapping:
+            default_value:
+              type: boolean
+            disable:
+              type: boolean
+            hidden:
+              type: boolean
+        comment:
+          type: mapping
+          mapping:
+            default_value:
+              type: boolean
+            disable:
+              type: boolean
+            hidden:
+              type: boolean
+        contact_message:
+          type: mapping
+          mapping:
+            default_value:
+              type: boolean
+            disable:
+              type: boolean
+            hidden:
+              type: boolean
+        file:
+          type: mapping
+          mapping:
+            default_value:
+              type: boolean
+            disable:
+              type: boolean
+            hidden:
+              type: boolean
+        node:
+          type: mapping
+          mapping:
+            default_value:
+              type: boolean
+            disable:
+              type: boolean
+            hidden:
+              type: boolean
+        shortcut:
+          type: mapping
+          mapping:
+            default_value:
+              type: boolean
+            disable:
+              type: boolean
+            hidden:
+              type: boolean
+        user:
+          type: mapping
+          mapping:
+            default_value:
+              type: boolean
+            disable:
+              type: boolean
+            hidden:
+              type: boolean
+        menu_link_content:
+          type: mapping
+          mapping:
+            default_value:
+              type: boolean
+            disable:
+              type: boolean
+            hidden:
+              type: boolean
diff --git a/web/modules/entity_clone/entity_clone.info.yml b/web/modules/entity_clone/entity_clone.info.yml
new file mode 100644
index 0000000000000000000000000000000000000000..4f70fcb5ee80bce7d4600dd58d029cd100ef0c70
--- /dev/null
+++ b/web/modules/entity_clone/entity_clone.info.yml
@@ -0,0 +1,11 @@
+name: Entity Clone
+description: Add a clone action for all entities
+# core:  "8.x"
+type: module
+configure: entity_clone.settings
+
+# Information added by Drupal.org packaging script on 2019-01-04
+version: '8.x-1.0-beta1'
+core: '8.x'
+project: 'entity_clone'
+datestamp: 1546583287
diff --git a/web/modules/entity_clone/entity_clone.links.menu.yml b/web/modules/entity_clone/entity_clone.links.menu.yml
new file mode 100644
index 0000000000000000000000000000000000000000..f013a12f9ba486b55461ea6f72f73cfea553749c
--- /dev/null
+++ b/web/modules/entity_clone/entity_clone.links.menu.yml
@@ -0,0 +1,5 @@
+entity_clone.settings:
+  title: 'Entity clone settings'
+  description: 'Entity clone settings.'
+  route_name: entity_clone.settings
+  parent: 'system.admin_config_content'
diff --git a/web/modules/entity_clone/entity_clone.links.task.yml b/web/modules/entity_clone/entity_clone.links.task.yml
new file mode 100644
index 0000000000000000000000000000000000000000..427f5759dce38294a6a0ed1fc695759a08de174f
--- /dev/null
+++ b/web/modules/entity_clone/entity_clone.links.task.yml
@@ -0,0 +1,8 @@
+entity_clone.clone:
+  deriver: 'Drupal\entity_clone\Plugin\Derivative\DynamicLocalTasks'
+  weight: 100
+entity_clone.settings:
+  title: 'Entity clone settings'
+  route_name: entity_clone.settings
+  base_route: entity_clone.settings
+  weight: 0
diff --git a/web/modules/entity_clone/entity_clone.module b/web/modules/entity_clone/entity_clone.module
new file mode 100644
index 0000000000000000000000000000000000000000..7b6a3a919abde6c18d4dad747ae684c5aa4066ef
--- /dev/null
+++ b/web/modules/entity_clone/entity_clone.module
@@ -0,0 +1,132 @@
+<?php
+
+/**
+ * @file
+ * Contains entity_clone.module.
+ */
+
+use Drupal\Core\Entity\ContentEntityTypeInterface;
+use Drupal\Core\Entity\EntityInterface;
+use Drupal\Core\Routing\RouteMatchInterface;
+use Drupal\Core\Config\Entity\ConfigEntityTypeInterface;
+use Drupal\entity_clone\EntityClone\Config\ConfigEntityCloneBase;
+use Drupal\entity_clone\EntityClone\Config\ConfigEntityCloneFormBase;
+use Drupal\entity_clone\EntityClone\Config\ConfigWithFieldEntityClone;
+use Drupal\entity_clone\EntityClone\Config\FieldConfigEntityClone;
+use Drupal\entity_clone\EntityClone\Content\ContentEntityCloneBase;
+use Drupal\entity_clone\EntityClone\Content\ContentEntityCloneFormBase;
+use Drupal\entity_clone\EntityClone\Content\FileEntityClone;
+use Drupal\entity_clone\EntityClone\Content\TaxonomyTermEntityClone;
+use Drupal\entity_clone\EntityClone\Content\UserEntityClone;
+
+/**
+ * Implements hook_help().
+ */
+function entity_clone_help($route_name, RouteMatchInterface $route_match) {
+  switch ($route_name) {
+    // Main module help for the entity_clone module.
+    case 'help.page.entity_clone':
+      $output = '';
+      $output .= '<h3>' . t('About') . '</h3>';
+      $output .= '<p>' . t('Provides a new operation to clone all Entities.') . '</p>';
+      return $output;
+
+    default:
+      return;
+
+  }
+}
+
+/**
+ * Implements hook_entity_type_build().
+ */
+function entity_clone_entity_type_build(array &$entity_types) {
+  $specific_handler = [
+    'file' => [
+      'entity_clone' => FileEntityClone::class,
+      'entity_clone_form' => ContentEntityCloneFormBase::class,
+    ],
+    'user' => [
+      'entity_clone' => UserEntityClone::class,
+      'entity_clone_form' => ContentEntityCloneFormBase::class,
+    ],
+    'field_config' => [
+      'entity_clone' => FieldConfigEntityClone::class,
+      'entity_clone_form' => ConfigEntityCloneFormBase::class,
+    ],
+    'node_type' => [
+      'entity_clone' => ConfigWithFieldEntityClone::class,
+      'entity_clone_form' => ConfigEntityCloneFormBase::class,
+    ],
+    'comment_type' => [
+      'entity_clone' => ConfigWithFieldEntityClone::class,
+      'entity_clone_form' => ConfigEntityCloneFormBase::class,
+    ],
+    'block_content_type' => [
+      'entity_clone' => ConfigWithFieldEntityClone::class,
+      'entity_clone_form' => ConfigEntityCloneFormBase::class,
+    ],
+    'contact_form' => [
+      'entity_clone' => ConfigWithFieldEntityClone::class,
+      'entity_clone_form' => ConfigEntityCloneFormBase::class,
+    ],
+    'taxonomy_term' => [
+      'entity_clone' => TaxonomyTermEntityClone::class,
+      'entity_clone_form' => ContentEntityCloneFormBase::class,
+    ],
+  ];
+
+  /** @var \Drupal\Core\Entity\EntityTypeInterface[] $entity_types */
+  foreach ($entity_types as &$entity_type) {
+    if (isset($specific_handler[$entity_type->id()])) {
+      $entity_type->setHandlerClass('entity_clone', $specific_handler[$entity_type->id()]['entity_clone']);
+      if (isset($specific_handler[$entity_type->id()]['entity_clone_form'])) {
+        $entity_type->setHandlerClass('entity_clone_form', $specific_handler[$entity_type->id()]['entity_clone_form']);
+      }
+    }
+    elseif (!$entity_type->getHandlerClass('entity_clone') && $entity_type instanceof ContentEntityTypeInterface) {
+      $entity_type->setHandlerClass('entity_clone', ContentEntityCloneBase::class);
+      $entity_type->setHandlerClass('entity_clone_form', ContentEntityCloneFormBase::class);
+    }
+    elseif (!$entity_type->getHandlerClass('entity_clone') && $entity_type instanceof ConfigEntityTypeInterface) {
+      $entity_type->setHandlerClass('entity_clone', ConfigEntityCloneBase::class);
+      $entity_type->setHandlerClass('entity_clone_form', ConfigEntityCloneFormBase::class);
+    }
+  }
+}
+
+/**
+ * Declares entity operations.
+ *
+ * @param \Drupal\Core\Entity\EntityInterface $entity
+ *   The entity on which the linked operations will be performed.
+ *
+ * @return array
+ *   An operations array as returned by
+ *   EntityListBuilderInterface::getOperations().
+ *
+ * @see \Drupal\Core\Entity\EntityListBuilderInterface::getOperations()
+ */
+function entity_clone_entity_operation(EntityInterface $entity) {
+  if ($entity->hasLinkTemplate('clone-form')) {
+    return [
+      'clone' => [
+        'title' => t('Clone'),
+        'weight' => 50,
+        'url' => $entity->toUrl('clone-form'),
+      ],
+    ];
+  }
+
+  return [];
+}
+
+/**
+ * Implements hook_entity_type_alter().
+ */
+function entity_clone_entity_type_alter(array &$entity_types) {
+  /** @var \Drupal\Core\Entity\EntityType[] $entity_types */
+  foreach ($entity_types as $entity_type_id => $entity_type) {
+    $entity_type->setLinkTemplate('clone-form', "/entity_clone/$entity_type_id/{{$entity_type_id}}");
+  }
+}
diff --git a/web/modules/entity_clone/entity_clone.permissions.yml b/web/modules/entity_clone/entity_clone.permissions.yml
new file mode 100644
index 0000000000000000000000000000000000000000..6e259f5f594a6b1543e836dbc1cb38fc6c964773
--- /dev/null
+++ b/web/modules/entity_clone/entity_clone.permissions.yml
@@ -0,0 +1,2 @@
+permission_callbacks:
+  - Drupal\entity_clone\EntityClonePermissions::permissions
diff --git a/web/modules/entity_clone/entity_clone.post_update.php b/web/modules/entity_clone/entity_clone.post_update.php
new file mode 100644
index 0000000000000000000000000000000000000000..67349bb564ebca59939235e9c9f0f17ca95df699
--- /dev/null
+++ b/web/modules/entity_clone/entity_clone.post_update.php
@@ -0,0 +1,24 @@
+<?php
+
+/**
+ * @file
+ * Contains entity_clone.post_update.php.
+ */
+
+/**
+ * Populates new entity_clone form settings.
+ */
+function entity_clone_post_update_populate_form_settings() {
+  /** @var \Drupal\entity_clone\EntityCloneSettingsManager $entity_clone_settings_manager */
+  $entity_clone_settings_manager = \Drupal::service('entity_clone.settings.manager');
+  $form_settings = [];
+  foreach (array_keys($entity_clone_settings_manager->getContentEntityTypes()) as $entity_type_id) {
+    $form_settings[$entity_type_id] = [
+      'default_value' => FALSE,
+      'disable' => FALSE,
+      'hidden' => FALSE,
+    ];
+  }
+
+  \Drupal::configFactory()->getEditable('entity_clone.settings')->set('form_settings', $form_settings)->save();
+}
diff --git a/web/modules/entity_clone/entity_clone.routing.yml b/web/modules/entity_clone/entity_clone.routing.yml
new file mode 100644
index 0000000000000000000000000000000000000000..b89a94b73d350ae0aafbeafad79dc9a6cf7e8834
--- /dev/null
+++ b/web/modules/entity_clone/entity_clone.routing.yml
@@ -0,0 +1,9 @@
+entity_clone.settings:
+  path: '/admin/config/system/entity-clone'
+  defaults:
+    _form: 'Drupal\entity_clone\Form\EntityCloneSettingsForm'
+    _title: 'Entity clone settings'
+  options:
+    _admin_route: TRUE
+  requirements:
+    _permission: 'administer entity clone'
diff --git a/web/modules/entity_clone/entity_clone.services.yml b/web/modules/entity_clone/entity_clone.services.yml
new file mode 100644
index 0000000000000000000000000000000000000000..20cf5db105eb6c965ad63eb73bb49622e14b64f5
--- /dev/null
+++ b/web/modules/entity_clone/entity_clone.services.yml
@@ -0,0 +1,9 @@
+services:
+  entity_clone.settings.manager:
+    class: Drupal\entity_clone\EntityCloneSettingsManager
+    arguments: ['@entity_type.manager', '@entity_type.bundle.info', '@config.factory']
+  entity_clone.route_subscriber:
+    class: Drupal\entity_clone\Routing\RouteSubscriber
+    arguments: ['@entity_type.manager']
+    tags:
+      - { name: event_subscriber }
diff --git a/web/modules/entity_clone/src/EntityClone/Config/ConfigEntityCloneBase.php b/web/modules/entity_clone/src/EntityClone/Config/ConfigEntityCloneBase.php
new file mode 100644
index 0000000000000000000000000000000000000000..c0c33490a956af671df83c129fc1c2605a006e69
--- /dev/null
+++ b/web/modules/entity_clone/src/EntityClone/Config/ConfigEntityCloneBase.php
@@ -0,0 +1,86 @@
+<?php
+
+namespace Drupal\entity_clone\EntityClone\Config;
+
+use Drupal\Core\Entity\EntityHandlerInterface;
+use Drupal\Core\Entity\EntityInterface;
+use Drupal\Core\Entity\EntityTypeInterface;
+use Drupal\Core\Entity\EntityTypeManagerInterface;
+use Drupal\entity_clone\EntityClone\EntityCloneInterface;
+use Symfony\Component\DependencyInjection\ContainerInterface;
+
+/**
+ * Class ConfigEntityCloneBase.
+ */
+class ConfigEntityCloneBase implements EntityHandlerInterface, EntityCloneInterface {
+
+  /**
+   * The entity type manager.
+   *
+   * @var \Drupal\Core\Entity\EntityTypeManagerInterface
+   */
+  protected $entityTypeManager;
+
+  /**
+   * The entity type ID.
+   *
+   * @var string
+   */
+  protected $entityTypeId;
+
+  /**
+   * Constructs a new ConfigEntityCloneBase.
+   *
+   * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
+   *   The entity type manager.
+   * @param string $entity_type_id
+   *   The entity type ID.
+   */
+  public function __construct(EntityTypeManagerInterface $entity_type_manager, $entity_type_id) {
+    $this->entityTypeManager = $entity_type_manager;
+    $this->entityTypeId = $entity_type_id;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
+    return new static(
+      $container->get('entity_type.manager'),
+      $entity_type->id()
+    );
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function cloneEntity(EntityInterface $entity, EntityInterface $cloned_entity, array $properties = []) {
+    /** @var \Drupal\core\Config\Entity\ConfigEntityInterface $cloned_entity */
+    $id_key = $this->entityTypeManager->getDefinition($this->entityTypeId)->getKey('id');
+    $label_key = $this->entityTypeManager->getDefinition($this->entityTypeId)->getKey('label');
+
+    // Set new entity properties.
+    if (isset($properties['id'])) {
+      if ($id_key) {
+        $cloned_entity->set($id_key, $properties['id']);
+      }
+      unset($properties['id']);
+    }
+
+    if (isset($properties['label'])) {
+      if ($label_key) {
+        $cloned_entity->set($label_key, $properties['label']);
+      }
+      unset($properties['label']);
+    }
+
+    foreach ($properties as $key => $property) {
+      $cloned_entity->set($key, $property);
+    }
+
+    $cloned_entity->save();
+    return $cloned_entity;
+
+  }
+
+}
diff --git a/web/modules/entity_clone/src/EntityClone/Config/ConfigEntityCloneFormBase.php b/web/modules/entity_clone/src/EntityClone/Config/ConfigEntityCloneFormBase.php
new file mode 100644
index 0000000000000000000000000000000000000000..4f1c4360921397d0dc3825af337350b9afbc4d73
--- /dev/null
+++ b/web/modules/entity_clone/src/EntityClone/Config/ConfigEntityCloneFormBase.php
@@ -0,0 +1,110 @@
+<?php
+
+namespace Drupal\entity_clone\EntityClone\Config;
+
+use Drupal\Core\Entity\EntityHandlerInterface;
+use Drupal\Core\Entity\EntityInterface;
+use Drupal\Core\Entity\EntityTypeInterface;
+use Drupal\Core\Entity\EntityTypeManagerInterface;
+use Drupal\Core\Form\FormStateInterface;
+use Drupal\Core\StringTranslation\TranslationManager;
+use Drupal\entity_clone\EntityClone\EntityCloneFormInterface;
+use Symfony\Component\DependencyInjection\ContainerInterface;
+
+/**
+ * Class ConfigEntityCloneFormBase.
+ */
+class ConfigEntityCloneFormBase implements EntityHandlerInterface, EntityCloneFormInterface {
+
+  /**
+   * The string translation.
+   *
+   * @var \Drupal\Core\StringTranslation\TranslationManager
+   */
+  protected $translationManager;
+
+  /**
+   * The entity type manager.
+   *
+   * @var \Drupal\Core\Entity\EntityTypeManagerInterface
+   */
+  protected $entityTypeManager;
+
+  /**
+   * Constructs a new ConfigEntityCloneFormBase.
+   *
+   * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
+   *   The entity type manager.
+   * @param \Drupal\Core\StringTranslation\TranslationManager $translation_manager
+   *   The string translation manager.
+   */
+  public function __construct(EntityTypeManagerInterface $entity_type_manager, TranslationManager $translation_manager) {
+    $this->entityTypeManager = $entity_type_manager;
+    $this->translationManager = $translation_manager;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
+    return new static(
+      $container->get('entity_type.manager'),
+      $container->get('string_translation')
+    );
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function formElement(EntityInterface $entity, $parent = TRUE) {
+    $form = [];
+
+    if ($this->entityTypeManager->getDefinition($entity->getEntityTypeId())->getKey('label')) {
+      $form['label'] = [
+        '#type' => 'textfield',
+        '#title' => $this->translationManager->translate('New Label'),
+        '#maxlength' => 255,
+        '#required' => TRUE,
+      ];
+    }
+
+    $form['id'] = [
+      '#type' => 'machine_name',
+      '#title' => $this->translationManager->translate('New Id'),
+      '#maxlength' => 255,
+      '#required' => TRUE,
+    ];
+
+    // If entity must have a prefix
+    // (e.g. entity_form_mode, entity_view_mode, ...).
+    if (method_exists($entity, 'getTargetType')) {
+      $form['id']['#field_prefix'] = $entity->getTargetType() . '.';
+    }
+
+    if (method_exists($entity, 'load')) {
+      $form['id']['#machine_name'] = [
+        'exists' => get_class($entity) . '::load',
+      ];
+    }
+
+    return $form;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getValues(FormStateInterface $form_state) {
+    // If entity must have a prefix
+    // (e.g. entity_form_mode, entity_view_mode, ...).
+    $field_prefix = '';
+    if (isset($form_state->getCompleteForm()['id']['#field_prefix'])) {
+      $field_prefix = $form_state->getCompleteForm()['id']['#field_prefix'];
+    }
+
+    return [
+      'id' => $field_prefix . $form_state->getValue('id'),
+      'label' => $form_state->getValue('label'),
+    ];
+  }
+
+}
diff --git a/web/modules/entity_clone/src/EntityClone/Config/ConfigWithFieldEntityClone.php b/web/modules/entity_clone/src/EntityClone/Config/ConfigWithFieldEntityClone.php
new file mode 100644
index 0000000000000000000000000000000000000000..7cdb093ed48d08149ab8433d6184706670646bb5
--- /dev/null
+++ b/web/modules/entity_clone/src/EntityClone/Config/ConfigWithFieldEntityClone.php
@@ -0,0 +1,105 @@
+<?php
+
+namespace Drupal\entity_clone\EntityClone\Config;
+
+use Drupal\Core\Entity\EntityInterface;
+use Drupal\Core\Field\FieldConfigInterface;
+
+/**
+ * Class ContentEntityCloneBase.
+ */
+class ConfigWithFieldEntityClone extends ConfigEntityCloneBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function cloneEntity(EntityInterface $entity, EntityInterface $cloned_entity, array $properties = []) {
+    $cloned_entity = parent::cloneEntity($entity, $cloned_entity, $properties);
+    $bundle_of = $cloned_entity->getEntityType()->getBundleOf();
+    if ($bundle_of) {
+      $this->cloneFields($entity->id(), $cloned_entity->id(), $bundle_of);
+    }
+
+    $view_displays = \Drupal::service('entity_display.repository')->getViewModes($bundle_of);
+    $view_displays = array_merge($view_displays, ['default' => 'default']);
+    if (!empty($view_displays)) {
+      $this->cloneDisplays('view', $entity->id(), $cloned_entity->id(), $view_displays, $bundle_of);
+    }
+
+    $view_displays = \Drupal::service('entity_display.repository')->getFormModes($bundle_of);
+    $view_displays = array_merge($view_displays, ['default' => 'default']);
+    if (!empty($view_displays)) {
+      $this->cloneDisplays('form', $entity->id(), $cloned_entity->id(), $view_displays, $bundle_of);
+    }
+
+    return $cloned_entity;
+  }
+
+  /**
+   * Clone all fields. Each field re-use existing field storage.
+   *
+   * @param string $entity_id
+   *   The base entity ID.
+   * @param string $cloned_entity_id
+   *   The cloned entity ID.
+   * @param string $bundle_of
+   *   The bundle of the cloned entity.
+   */
+  protected function cloneFields($entity_id, $cloned_entity_id, $bundle_of) {
+    /** @var \Drupal\Core\Entity\EntityFieldManager $field_manager */
+    $field_manager = \Drupal::service('entity_field.manager');
+    $fields = $field_manager->getFieldDefinitions($bundle_of, $entity_id);
+    foreach ($fields as $field_definition) {
+      if ($field_definition instanceof FieldConfigInterface) {
+        if ($this->entityTypeManager->hasHandler($this->entityTypeManager->getDefinition($field_definition->getEntityTypeId())
+          ->id(), 'entity_clone')
+        ) {
+          /** @var \Drupal\entity_clone\EntityClone\EntityCloneInterface $field_config_clone_handler */
+          $field_config_clone_handler = $this->entityTypeManager->getHandler($this->entityTypeManager->getDefinition($field_definition->getEntityTypeId())
+            ->id(), 'entity_clone');
+          $field_config_properties = [
+            'id' => $field_definition->getName(),
+            'label' => $field_definition->label(),
+            'skip_storage' => TRUE,
+          ];
+          $cloned_field_definition = $field_definition->createDuplicate();
+          $cloned_field_definition->set('bundle', $cloned_entity_id);
+          $field_config_clone_handler->cloneEntity($field_definition, $cloned_field_definition, $field_config_properties);
+        }
+      }
+    }
+  }
+
+  /**
+   * Clone all fields. Each field re-use existing field storage.
+   *
+   * @param string $type
+   *   The type of display (view or form).
+   * @param string $entity_id
+   *   The base entity ID.
+   * @param string $cloned_entity_id
+   *   The cloned entity ID.
+   * @param array $view_displays
+   *   All view available display for this type.
+   * @param string $bundle_of
+   *   The bundle of the cloned entity.
+   */
+  protected function cloneDisplays($type, $entity_id, $cloned_entity_id, array $view_displays, $bundle_of) {
+    foreach ($view_displays as $view_display_id => $view_display) {
+      /** @var \Drupal\Core\Entity\Display\EntityDisplayInterface $display */
+      $display = $this->entityTypeManager->getStorage('entity_' . $type . '_display')->load($bundle_of . '.' . $entity_id . '.' . $view_display_id);
+      if ($display) {
+        /** @var \Drupal\entity_clone\EntityClone\EntityCloneInterface $view_display_clone_handler */
+        $view_display_clone_handler = $this->entityTypeManager->getHandler($this->entityTypeManager->getDefinition($display->getEntityTypeId())
+          ->id(), 'entity_clone');
+        $view_display_properties = [
+          'id' => $bundle_of . '.' . $cloned_entity_id . '.' . $view_display_id,
+        ];
+        $cloned_view_display = $display->createDuplicate();
+        $cloned_view_display->set('bundle', $cloned_entity_id);
+        $view_display_clone_handler->cloneEntity($display, $cloned_view_display, $view_display_properties);
+      }
+    }
+  }
+
+}
diff --git a/web/modules/entity_clone/src/EntityClone/Config/FieldConfigEntityClone.php b/web/modules/entity_clone/src/EntityClone/Config/FieldConfigEntityClone.php
new file mode 100644
index 0000000000000000000000000000000000000000..b16d1edaf9613632637bd6dbd89f1f4788f4100f
--- /dev/null
+++ b/web/modules/entity_clone/src/EntityClone/Config/FieldConfigEntityClone.php
@@ -0,0 +1,33 @@
+<?php
+
+namespace Drupal\entity_clone\EntityClone\Config;
+
+use Drupal\Core\Entity\EntityInterface;
+
+/**
+ * Class FieldConfigEntityClone.
+ */
+class FieldConfigEntityClone extends ConfigEntityCloneBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function cloneEntity(EntityInterface $field_config, EntityInterface $cloned_field_config, array $properties = []) {
+    /** @var \Drupal\field\Entity\FieldConfig $field_config */
+    /** @var \Drupal\field\Entity\FieldConfig $cloned_field_config */
+    /** @var \Drupal\field\Entity\FieldStorageConfig $cloned_field_storage */
+
+    if ((!isset($properties['skip_storage']) || !$properties['skip_storage'])) {
+      $cloned_field_storage = $field_config->getFieldStorageDefinition()->createDuplicate();
+      $cloned_field_storage->set('field_name', $properties['id']);
+      $cloned_field_storage->set('id', $properties['id'] . '.' . $cloned_field_storage->getTargetEntityTypeId());
+      $cloned_field_storage->save();
+    }
+    unset($properties['skip_storage']);
+
+    $properties['field_name'] = $properties['id'];
+    $properties['id'] = $cloned_field_config->getTargetEntityTypeId() . '.' . $cloned_field_config->getTargetBundle() . '.' . $properties['id'];
+    return parent::cloneEntity($field_config, $cloned_field_config, $properties);
+  }
+
+}
diff --git a/web/modules/entity_clone/src/EntityClone/Content/ContentEntityCloneBase.php b/web/modules/entity_clone/src/EntityClone/Content/ContentEntityCloneBase.php
new file mode 100644
index 0000000000000000000000000000000000000000..b3b7de1faef6ec638597f47fa7e6cb42600da4f7
--- /dev/null
+++ b/web/modules/entity_clone/src/EntityClone/Content/ContentEntityCloneBase.php
@@ -0,0 +1,177 @@
+<?php
+
+namespace Drupal\entity_clone\EntityClone\Content;
+
+use Drupal\Core\Entity\EntityHandlerInterface;
+use Drupal\Core\Entity\EntityInterface;
+use Drupal\Core\Entity\EntityTypeInterface;
+use Drupal\Core\Entity\EntityTypeManagerInterface;
+use Drupal\Core\Entity\FieldableEntityInterface;
+use Drupal\Core\Field\FieldDefinitionInterface;
+use Drupal\Core\Field\FieldConfigInterface;
+use Drupal\Core\Field\FieldItemListInterface;
+use Drupal\entity_clone\EntityClone\EntityCloneInterface;
+use Symfony\Component\DependencyInjection\ContainerInterface;
+
+/**
+ * Class ContentEntityCloneBase.
+ */
+class ContentEntityCloneBase implements EntityHandlerInterface, EntityCloneInterface {
+
+  /**
+   * The entity type manager.
+   *
+   * @var \Drupal\Core\Entity\EntityTypeManagerInterface
+   */
+  protected $entityTypeManager;
+
+  /**
+   * The entity type ID.
+   *
+   * @var string
+   */
+  protected $entityTypeId;
+
+  /**
+   * Constructs a new ContentEntityCloneBase.
+   *
+   * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
+   *   The entity type manager.
+   * @param string $entity_type_id
+   *   The entity type ID.
+   */
+  public function __construct(EntityTypeManagerInterface $entity_type_manager, $entity_type_id) {
+    $this->entityTypeManager = $entity_type_manager;
+    $this->entityTypeId = $entity_type_id;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
+    return new static(
+      $container->get('entity_type.manager'),
+      $entity_type->id()
+    );
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function cloneEntity(EntityInterface $entity, EntityInterface $cloned_entity, array $properties = []) {
+    // Clone referenced entities.
+    if ($cloned_entity instanceof FieldableEntityInterface && $entity instanceof FieldableEntityInterface) {
+      foreach ($cloned_entity->getFieldDefinitions() as $field_id => $field_definition) {
+        if ($this->fieldIsClonable($field_definition)) {
+          $field = $entity->get($field_id);
+          /** @var \Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem $value */
+          if ($field->count() > 0) {
+            $cloned_entity->set($field_id, $this->cloneReferencedEntities($field, $field_definition, $properties));
+          }
+        }
+      }
+    }
+
+    $this->setClonedEntityLabel($entity, $cloned_entity);
+    $cloned_entity->save();
+    return $cloned_entity;
+  }
+
+  /**
+   * Determines if a field is clonable.
+   *
+   * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
+   *   The field definition.
+   *
+   * @return bool
+   *   TRUE if th field is clonable; FALSE otherwise.
+   */
+  protected function fieldIsClonable(FieldDefinitionInterface $field_definition) {
+    $clonable_field_types = [
+      'entity_reference',
+      'entity_reference_revisions',
+    ];
+
+    $type_is_clonable = in_array($field_definition->getType(), $clonable_field_types, TRUE);
+    if (($field_definition instanceof FieldConfigInterface) && $type_is_clonable) {
+      return TRUE;
+    }
+    return FALSE;
+  }
+
+  /**
+   * Sets the cloned entity's label.
+   *
+   * @param \Drupal\Core\Entity\EntityInterface $original_entity
+   *   The original entity.
+   * @param \Drupal\Core\Entity\EntityInterface $cloned_entity
+   *   The entity cloned from the original.
+   */
+  protected function setClonedEntityLabel(EntityInterface $original_entity, EntityInterface $cloned_entity) {
+    $label_key = $this->entityTypeManager->getDefinition($this->entityTypeId)->getKey('label');
+    if ($label_key) {
+      $cloned_entity->set($label_key, $original_entity->label() . ' - Cloned');
+    }
+  }
+
+  /**
+   * Clone referenced entities.
+   *
+   * @param \Drupal\Core\Field\FieldItemListInterface $field
+   *   The field item.
+   * @param \Drupal\Core\Field\FieldConfigInterface $field_definition
+   *   The field definition.
+   * @param array $properties
+   *   All new properties to replace old.
+   *
+   * @return array
+   *   Referenced entities.
+   */
+  protected function cloneReferencedEntities(FieldItemListInterface $field, FieldConfigInterface $field_definition, array $properties) {
+    $referenced_entities = [];
+    foreach ($field as $value) {
+      // Check if we're not dealing with an entity that has been deleted in the meantime
+      if (!$referenced_entity = $value->get('entity')->getTarget()) {
+        continue;
+      }
+      /** @var \Drupal\Core\Entity\ContentEntityInterface $referenced_entity */
+      $referenced_entity = $value->get('entity')->getTarget()->getValue();
+      if (!empty($properties['recursive'][$field_definition->id()]['references'][$referenced_entity->id()]['clone'])) {
+
+        $cloned_reference = $referenced_entity->createDuplicate();
+        /** @var \Drupal\entity_clone\EntityClone\EntityCloneInterface $entity_clone_handler */
+        $entity_clone_handler = $this->entityTypeManager->getHandler($referenced_entity->getEntityTypeId(), 'entity_clone');
+        $child_properties = $this->getChildProperties($properties, $field_definition, $referenced_entity);
+        $entity_clone_handler->cloneEntity($referenced_entity, $cloned_reference, $child_properties);
+
+        $referenced_entities[] = $cloned_reference;
+      }
+      else {
+        $referenced_entities[] = $referenced_entity;
+      }
+    }
+    return $referenced_entities;
+  }
+
+  /**
+   * Fetches the properties of a child entity.
+   *
+   * @param array $properties
+   *   Properties of the clone operation.
+   * @param \Drupal\Core\Field\FieldConfigInterface $field_definition
+   *   The field definition.
+   * @param \Drupal\Core\Entity\EntityInterface $referenced_entity
+   *   The field's target entity.
+   *
+   * @return array
+   *   Child properties.
+   */
+  protected function getChildProperties(array $properties, FieldConfigInterface $field_definition, EntityInterface $referenced_entity) {
+    $child_properties = [];
+    if (isset($properties['recursive'][$field_definition->id()]['references'][$referenced_entity->id()]['children'])) {
+      $child_properties = $properties['recursive'][$field_definition->id()]['references'][$referenced_entity->id()]['children'];
+    }
+    return $child_properties;
+  }
+
+}
diff --git a/web/modules/entity_clone/src/EntityClone/Content/ContentEntityCloneFormBase.php b/web/modules/entity_clone/src/EntityClone/Content/ContentEntityCloneFormBase.php
new file mode 100644
index 0000000000000000000000000000000000000000..f4e5be8353dc4931c3a7dc174b33728faf9f9b55
--- /dev/null
+++ b/web/modules/entity_clone/src/EntityClone/Content/ContentEntityCloneFormBase.php
@@ -0,0 +1,269 @@
+<?php
+
+namespace Drupal\entity_clone\EntityClone\Content;
+
+use Drupal\Core\Entity\ContentEntityInterface;
+use Drupal\Core\Entity\EntityHandlerInterface;
+use Drupal\Core\Entity\EntityInterface;
+use Drupal\Core\Entity\EntityTypeInterface;
+use Drupal\Core\Entity\EntityTypeManagerInterface;
+use Drupal\Core\Entity\FieldableEntityInterface;
+use Drupal\Core\Field\FieldConfigInterface;
+use Drupal\Core\Field\FieldItemListInterface;
+use Drupal\Core\Form\FormStateInterface;
+use Drupal\Core\StringTranslation\StringTranslationTrait;
+use Drupal\Core\StringTranslation\TranslationManager;
+use Drupal\entity_clone\EntityClone\EntityCloneFormInterface;
+use Drupal\entity_clone\EntityCloneSettingsManager;
+use Symfony\Component\DependencyInjection\ContainerInterface;
+
+/**
+ * Class ContentEntityCloneFormBase.
+ */
+class ContentEntityCloneFormBase implements EntityHandlerInterface, EntityCloneFormInterface {
+
+  use StringTranslationTrait;
+
+  /**
+   * The entity type manager.
+   *
+   * @var \Drupal\Core\StringTranslation\TranslationManager
+   */
+  protected $translationManager;
+
+  /**
+   * The entity type manager service.
+   *
+   * @var \Drupal\Core\Entity\EntityTypeManager
+   */
+  protected $entityTypeManager;
+
+  /**
+   * The entity clone settings manager service.
+   *
+   * @var \Drupal\entity_clone\EntityCloneSettingsManager
+   */
+  protected $entityCloneSettingsManager;
+
+  /**
+   * Entities we've found while cloning.
+   *
+   * @var \Drupal\Core\Entity\ContentEntityInterface[]
+   */
+  protected $discovered_entities = [];
+
+  /**
+   * Constructs a new ContentEntityCloneFormBase.
+   *
+   * @param \Drupal\Core\Entity\EntityTypeManager $entity_type_manager
+   *   The entity type manager.
+   * @param \Drupal\Core\StringTranslation\TranslationManager $translation_manager
+   *   The string translation manager.
+   * @param \Drupal\entity_clone\EntityCloneSettingsManager $entity_clone_settings_manager
+   *   The entity clone settings manager.
+   */
+  public function __construct(EntityTypeManagerInterface $entity_type_manager, TranslationManager $translation_manager, EntityCloneSettingsManager $entity_clone_settings_manager) {
+    $this->entityTypeManager = $entity_type_manager;
+    $this->translationManager = $translation_manager;
+    $this->entityCloneSettingsManager = $entity_clone_settings_manager;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
+    return new static(
+      $container->get('entity_type.manager'),
+      $container->get('string_translation'),
+      $container->get('entity_clone.settings.manager')
+    );
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function formElement(EntityInterface $entity, $parent = TRUE) {
+    $form = [
+      'recursive' => []
+    ];
+
+    if ($entity instanceof FieldableEntityInterface) {
+      foreach ($entity->getFieldDefinitions() as $field_id => $field_definition) {
+        if ($field_definition instanceof FieldConfigInterface && in_array($field_definition->getType(), ['entity_reference', 'entity_reference_revisions'], TRUE)) {
+          $field = $entity->get($field_id);
+          /** @var \Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem $value */
+          if ($field->count() > 0) {
+            $form['recursive'] = array_merge($form['recursive'], $this->getRecursiveFormElement($field_definition, $field_id, $field));
+          }
+        }
+      }
+
+      if ($parent) {
+        $form = array_merge([
+          'description' => [
+            '#markup' => $this->t("
+            <p>Specify the child entities (the entities referenced by this entity) that should also be cloned as part of
+            the cloning process.  If they're not included, these fields' referenced entities will be the same as in the
+            original.  In other words, fields in both the original entity and the cloned entity will refer to the same
+            referenced entity.  Examples:</p>
+
+            <p>If you have a Paragraph field in your entity, and you choose not to clone it here, deleting the original
+            or cloned entity will also delete the Paragraph field from the other one.  So you probably want to clone
+            Paragraph fields.</p>
+
+            <p>However, if you have a User reference field, you probably don't want to clone it here because a new User
+            will be created for referencing by the clone.</p>
+
+            <p>Some options may be disabled here, preventing you from changing them, as set by your administrator.  Some
+            options may also be missing, hidden by your administrator, forcing you to clone with the default settings.
+            It's possible that there are no options here for you at all, or none need to be set, in which case you may
+            simply hit the <em>Clone</em> button.</p>
+          "),
+            '#access' => $this->descriptionShouldBeShown($form),
+          ],
+        ], $form);
+      }
+    }
+
+    return $form;
+  }
+
+  /**
+   * Get the recursive form element.
+   *
+   * @param \Drupal\Core\Field\FieldConfigInterface $field_definition
+   *   The field definition.
+   * @param string $field_id
+   *   The field ID.
+   * @param \Drupal\Core\Field\FieldItemListInterface $field
+   *   The field item.
+   *
+   * @return array
+   *   The form element for a recursive clone.
+   */
+  protected function getRecursiveFormElement(FieldConfigInterface $field_definition, $field_id, FieldItemListInterface $field) {
+    $form_element = [
+      '#tree' => TRUE,
+    ];
+
+    $fieldset_access = !$this->entityCloneSettingsManager->getHiddenValue($field_definition->getFieldStorageDefinition()->getSetting('target_type'));
+    $form_element[$field_definition->id()] = [
+      '#type' => 'fieldset',
+      '#title' => $this->t('Entities referenced by field <em>@label (@field_id)</em>.', [
+        '@label' => $field_definition->label(),
+        '@field_id' => $field_id,
+      ]),
+      '#access' => $fieldset_access,
+      '#description_should_be_shown' => $fieldset_access,
+    ];
+
+    foreach ($field as $value) {
+      // Check if we're not dealing with an entity that has been deleted in the meantime
+      if (!$referenced_entity = $value->get('entity')->getTarget()) {
+        continue;
+      }
+      /** @var \Drupal\Core\Entity\ContentEntityInterface $referenced_entity */
+      $referenced_entity = $value->get('entity')->getTarget()->getValue();
+
+      $form_element[$field_definition->id()]['references'][$referenced_entity->id()]['clone'] = [
+        '#type' => 'checkbox',
+        '#title' => $this->t('Clone entity <strong>ID:</strong> <em>@entity_id</em>, <strong>Type:</strong> <em>@entity_type - @bundle</em>, <strong>Label:</strong> <em>@entity_label</em>', [
+          '@entity_id' => $referenced_entity->id(),
+          '@entity_type' => $referenced_entity->getEntityTypeId(),
+          '@bundle' => $referenced_entity->bundle(),
+          '@entity_label' => $referenced_entity->label(),
+        ]),
+        '#default_value' => $this->entityCloneSettingsManager->getDefaultValue($referenced_entity->getEntityTypeId()),
+        '#access' => $referenced_entity->access('view label'),
+      ];
+
+      if ($this->entityCloneSettingsManager->getDisableValue($referenced_entity->getEntityTypeId())) {
+        $form_element[$field_definition->id()]['references'][$referenced_entity->id()]['clone']['#attributes'] = [
+          'disabled' => TRUE,
+        ];
+        $form_element[$field_definition->id()]['references'][$referenced_entity->id()]['clone']['#value'] = $form_element[$field_definition->id()]['references'][$referenced_entity->id()]['clone']['#default_value'];
+      }
+
+      $form_element[$field_definition->id()]['references'][$referenced_entity->id()]['target_entity_type_id'] = [
+        '#type' => 'hidden',
+        '#value' => $referenced_entity->getEntityTypeId(),
+      ];
+
+      $form_element[$field_definition->id()]['references'][$referenced_entity->id()]['target_bundle'] = [
+        '#type' => 'hidden',
+        '#value' => $referenced_entity->bundle(),
+      ];
+      if ($referenced_entity instanceOf ContentEntityInterface) {
+        $form_element[$field_definition->id()]['references'][$referenced_entity->id()]['children'] = $this->getChildren($referenced_entity);
+      }
+    }
+
+    return $form_element;
+  }
+
+  /**
+   * Fetches clonable children from a field.
+   *
+   * @param \Drupal\Core\Entity\ContentEntityInterface $referenced_entity
+   *   The field item list.
+   *
+   * @return array
+   *   The list of children.
+   */
+  protected function getChildren(ContentEntityInterface $referenced_entity) {
+    // Use memoization to prevent circular references.
+    if (array_key_exists($referenced_entity->id(), $this->discovered_entities)) {
+      return;
+    }
+
+    /** @var \Drupal\entity_clone\EntityClone\EntityCloneFormInterface $entity_clone_handler */
+    if ($this->entityTypeManager->hasHandler($referenced_entity->getEntityTypeId(), 'entity_clone_form')) {
+      // Record that we've found this entity.
+      $this->discovered_entities[$referenced_entity->id()] = $referenced_entity;
+
+      $entity_clone_form_handler = $this->entityTypeManager->getHandler($referenced_entity->getEntityTypeId(), 'entity_clone_form');
+      return $entity_clone_form_handler->formElement($referenced_entity, FALSE);
+    }
+
+    return;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getValues(FormStateInterface $form_state) {
+    return $form_state->getValues();
+  }
+
+  /**
+   * Checks if description should be shown.
+   *
+   * If there are no recursive elements visible, the description should be
+   * hidden.
+   *
+   * @param array $form
+   *   Form.
+   *
+   * @return bool
+   *   TRUE if description should be shown.
+   */
+  protected function descriptionShouldBeShown(array $form) {
+    $show_description = TRUE;
+    if (!isset($form['recursive'])) {
+      $show_description = FALSE;
+    }
+
+    $visible = FALSE;
+    array_walk_recursive($form['recursive'], function ($item, $key) use (&$visible) {
+      if ($key === '#description_should_be_shown') {
+        $visible = ($visible || $item);
+      }
+    });
+
+    if (!$visible) {
+      $show_description = FALSE;
+    }
+    return $show_description;
+  }
+
+}
diff --git a/web/modules/entity_clone/src/EntityClone/Content/FileEntityClone.php b/web/modules/entity_clone/src/EntityClone/Content/FileEntityClone.php
new file mode 100644
index 0000000000000000000000000000000000000000..fb552c46312f8a8facc47fe6f857bd068d7710fc
--- /dev/null
+++ b/web/modules/entity_clone/src/EntityClone/Content/FileEntityClone.php
@@ -0,0 +1,21 @@
+<?php
+
+namespace Drupal\entity_clone\EntityClone\Content;
+
+use Drupal\Core\Entity\EntityInterface;
+
+/**
+ * Class ContentEntityCloneBase.
+ */
+class FileEntityClone extends ContentEntityCloneBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function cloneEntity(EntityInterface $entity, EntityInterface $cloned_entity, array $properties = []) {
+    /** @var \Drupal\file\FileInterface $cloned_entity */
+    $cloned_file = file_copy($cloned_entity, $cloned_entity->getFileUri(), FILE_EXISTS_RENAME);
+    return parent::cloneEntity($entity, $cloned_file, $properties);
+  }
+
+}
diff --git a/web/modules/entity_clone/src/EntityClone/Content/TaxonomyTermEntityClone.php b/web/modules/entity_clone/src/EntityClone/Content/TaxonomyTermEntityClone.php
new file mode 100644
index 0000000000000000000000000000000000000000..15388c666fe74bc02bdea30e7e11c81014abeab8
--- /dev/null
+++ b/web/modules/entity_clone/src/EntityClone/Content/TaxonomyTermEntityClone.php
@@ -0,0 +1,26 @@
+<?php
+
+namespace Drupal\entity_clone\EntityClone\Content;
+
+use Drupal\Core\Entity\EntityInterface;
+
+/**
+ * Class TaxonomyTermEntityClone.
+ */
+class TaxonomyTermEntityClone extends ContentEntityCloneBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function cloneEntity(EntityInterface $entity, EntityInterface $cloned_entity, array $properties = []) {
+    /** @var \Drupal\core\Entity\ContentEntityInterface $cloned_entity */
+
+    // Enforce a parent if the cloned term doesn't have a parent.
+    // (First level of a taxonomy tree).
+    if (!isset($cloned_entity->parent->target_id)) {
+      $cloned_entity->set('parent', 0);
+    }
+    return parent::cloneEntity($entity, $cloned_entity, $properties);
+  }
+
+}
diff --git a/web/modules/entity_clone/src/EntityClone/Content/UserEntityClone.php b/web/modules/entity_clone/src/EntityClone/Content/UserEntityClone.php
new file mode 100644
index 0000000000000000000000000000000000000000..68e64b49b3598f75450d89753e5204bc33b94676
--- /dev/null
+++ b/web/modules/entity_clone/src/EntityClone/Content/UserEntityClone.php
@@ -0,0 +1,21 @@
+<?php
+
+namespace Drupal\entity_clone\EntityClone\Content;
+
+use Drupal\Core\Entity\EntityInterface;
+
+/**
+ * Class ContentEntityCloneBase.
+ */
+class UserEntityClone extends ContentEntityCloneBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function cloneEntity(EntityInterface $entity, EntityInterface $cloned_entity, array $properties = []) {
+    /** @var \Drupal\user\UserInterface $cloned_entity */
+    $cloned_entity->set('name', $cloned_entity->getAccountName() . '_cloned');
+    return parent::cloneEntity($entity, $cloned_entity, $properties);
+  }
+
+}
diff --git a/web/modules/entity_clone/src/EntityClone/EntityCloneFormInterface.php b/web/modules/entity_clone/src/EntityClone/EntityCloneFormInterface.php
new file mode 100644
index 0000000000000000000000000000000000000000..55346c1f89b08f56fd077076502f97a9fa30f379
--- /dev/null
+++ b/web/modules/entity_clone/src/EntityClone/EntityCloneFormInterface.php
@@ -0,0 +1,38 @@
+<?php
+
+namespace Drupal\entity_clone\EntityClone;
+
+use Drupal\Core\Entity\EntityInterface;
+use Drupal\Core\Form\FormStateInterface;
+
+/**
+ * Defines a common interface for all entity clone form objects.
+ */
+interface EntityCloneFormInterface {
+
+  /**
+   * Get all specific form element.
+   *
+   * @param \Drupal\Core\Entity\EntityInterface $entity
+   *   The entity.
+   *
+   * @param bool $parent
+   *   Is the parent form element.
+   *
+   * @return array
+   *   The form elements.
+   */
+  public function formElement(EntityInterface $entity, $parent = TRUE);
+
+  /**
+   * Get all new values provided by the specific form element.
+   *
+   * @param \Drupal\Core\Form\FormStateInterface $form_state
+   *   The form state.
+   *
+   * @return array
+   *   An array containing all new values.
+   */
+  public function getValues(FormStateInterface $form_state);
+
+}
diff --git a/web/modules/entity_clone/src/EntityClone/EntityCloneInterface.php b/web/modules/entity_clone/src/EntityClone/EntityCloneInterface.php
new file mode 100644
index 0000000000000000000000000000000000000000..ed020233a981e9d67e7c768cad60c9562d9aa003
--- /dev/null
+++ b/web/modules/entity_clone/src/EntityClone/EntityCloneInterface.php
@@ -0,0 +1,27 @@
+<?php
+
+namespace Drupal\entity_clone\EntityClone;
+
+use Drupal\Core\Entity\EntityInterface;
+
+/**
+ * Defines a common interface for all entity clone objects.
+ */
+interface EntityCloneInterface {
+
+  /**
+   * Clone an entity.
+   *
+   * @param \Drupal\Core\Entity\EntityInterface $entity
+   *   The entity.
+   * @param \Drupal\Core\Entity\EntityInterface $cloned_entity
+   *   The cloned entity.
+   * @param array $properties
+   *   All new properties to replace old.
+   *
+   * @return \Drupal\Core\Entity\EntityInterface
+   *   The new saved entity.
+   */
+  public function cloneEntity(EntityInterface $entity, EntityInterface $cloned_entity, array $properties = []);
+
+}
diff --git a/web/modules/entity_clone/src/EntityClonePermissions.php b/web/modules/entity_clone/src/EntityClonePermissions.php
new file mode 100644
index 0000000000000000000000000000000000000000..3057d57d9a7f942bff4cfebe88ec20f9a8fd86a1
--- /dev/null
+++ b/web/modules/entity_clone/src/EntityClonePermissions.php
@@ -0,0 +1,71 @@
+<?php
+
+namespace Drupal\entity_clone;
+
+use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
+use Drupal\Core\Entity\EntityTypeManagerInterface;
+use Drupal\Core\StringTranslation\TranslationManager;
+use Symfony\Component\DependencyInjection\ContainerInterface;
+
+/**
+ * Provides dynamic permissions of the entity_clone module.
+ */
+class EntityClonePermissions implements ContainerInjectionInterface {
+
+  /**
+   * The entoty type manager.
+   *
+   * @var \Drupal\Core\Entity\EntityTypeManagerInterface
+   */
+  protected $entityTypeManager;
+
+  /**
+   * The string translation manager.
+   *
+   * @var \Drupal\Core\StringTranslation\TranslationManager
+   */
+  protected $translationManager;
+
+
+  /**
+   * Constructs a new EntityClonePermissions instance.
+   *
+   * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager
+   *   The entity type manager.
+   * @param \Drupal\Core\StringTranslation\TranslationManager $string_translation
+   *   The string translation manager.
+   */
+  public function __construct(EntityTypeManagerInterface $entity_manager, TranslationManager $string_translation) {
+    $this->entityTypeManager = $entity_manager;
+    $this->translationManager = $string_translation;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function create(ContainerInterface $container) {
+    return new static(
+      $container->get('entity_type.manager'),
+      $container->get('string_translation')
+    );
+  }
+
+  /**
+   * Returns an array of entity_clone permissions.
+   *
+   * @return array
+   *   The permission list.
+   */
+  public function permissions() {
+    $permissions = [];
+
+    foreach ($this->entityTypeManager->getDefinitions() as $entity_type_id => $entity_type) {
+      $permissions['clone ' . $entity_type_id . ' entity'] = $this->translationManager->translate('Clone all <em>@label</em> entities', [
+        '@label' => $entity_type->getLabel(),
+      ]);
+    }
+
+    return $permissions;
+  }
+
+}
diff --git a/web/modules/entity_clone/src/EntityCloneSettingsManager.php b/web/modules/entity_clone/src/EntityCloneSettingsManager.php
new file mode 100644
index 0000000000000000000000000000000000000000..59899a3fb0199e8d9603a8d20bb1c11b3e5a5673
--- /dev/null
+++ b/web/modules/entity_clone/src/EntityCloneSettingsManager.php
@@ -0,0 +1,149 @@
+<?php
+
+namespace Drupal\entity_clone;
+
+use Drupal\Core\Config\ConfigFactoryInterface;
+use Drupal\Core\Entity\ContentEntityTypeInterface;
+use Drupal\Core\Entity\EntityTypeBundleInfoInterface;
+use Drupal\Core\Entity\EntityTypeManagerInterface;
+
+/**
+ * Manage entity clone configuration.
+ */
+class EntityCloneSettingsManager {
+
+  /**
+   * The entity type manager service.
+   *
+   * @var \Drupal\Core\Entity\EntityTypeManagerInterface
+   */
+  protected $entityTypeManager;
+
+  /**
+   * The entity type bundle info service.
+   *
+   * @var \Drupal\Core\Entity\EntityTypeBundleInfoInterface
+   */
+  protected $entityTypeBundleInfo;
+
+  /**
+   * The immutable entity clone settings configuration entity.
+   *
+   * @var \Drupal\Core\Config\ImmutableConfig
+   */
+  protected $config;
+
+  /**
+   * The editable entity clone settings configuration entity.
+   *
+   * @var \Drupal\Core\Config\Config
+   */
+  protected $editableConfig;
+
+  /**
+   * EntityCloneSettingsManager constructor.
+   *
+   * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
+   *   The entity type manager service.
+   * @param \Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info
+   *   The entity type bundle info service.
+   * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
+   *   The config factory service.
+   */
+  public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, ConfigFactoryInterface $config_factory) {
+    $this->entityTypeManager = $entity_type_manager;
+    $this->entityTypeBundleInfo = $entity_type_bundle_info;
+    $this->config = $config_factory->get('entity_clone.settings');
+    $this->editableConfig = $config_factory->getEditable('entity_clone.settings');
+  }
+
+  /**
+   * Get all content entity types.
+   *
+   * @return \Drupal\Core\Entity\ContentEntityTypeInterface[]
+   *   An array containing all content entity types.
+   */
+  public function getContentEntityTypes() {
+    $definitions = $this->entityTypeManager->getDefinitions();
+    $ret = [];
+    foreach ($definitions as $machine => $type) {
+      if ($type instanceof ContentEntityTypeInterface) {
+        $ret[$machine] = $type;
+      }
+    }
+
+    return $ret;
+  }
+
+  /**
+   * Set the entity clone settings.
+   *
+   * @param array $settings
+   *   The settings from the form.
+   */
+  public function setFormSettings(array $settings) {
+    if (isset($settings['table'])) {
+      array_walk_recursive($settings['table'], function (&$item) {
+        if ($item == '1') {
+          $item = TRUE;
+        }
+        else {
+          $item = FALSE;
+        }
+      });
+      $this->editableConfig->set('form_settings', $settings['table'])->save();
+    }
+  }
+
+  /**
+   * Get the checkbox default value for a given entity type.
+   *
+   * @param string $entity_type_id
+   *   The entity type ID.
+   *
+   * @return bool
+   *   The default value.
+   */
+  public function getDefaultValue($entity_type_id) {
+    $form_settings = $this->config->get('form_settings');
+    if (isset($form_settings[$entity_type_id]['default_value'])) {
+      return $form_settings[$entity_type_id]['default_value'];
+    }
+    return FALSE;
+  }
+
+  /**
+   * Get the checkbox disable value for a given entity type.
+   *
+   * @param string $entity_type_id
+   *   The entity type ID.
+   *
+   * @return bool
+   *   The disable value.
+   */
+  public function getDisableValue($entity_type_id) {
+    $form_settings = $this->config->get('form_settings');
+    if (isset($form_settings[$entity_type_id]['disable'])) {
+      return $form_settings[$entity_type_id]['disable'];
+    }
+    return FALSE;
+  }
+
+  /**
+   * Get the checkbox hidden value for a given entity type.
+   *
+   * @param string $entity_type_id
+   *   The entity type ID.
+   *
+   * @return bool
+   *   The hidden value.
+   */
+  public function getHiddenValue($entity_type_id) {
+    $form_settings = $this->config->get('form_settings');
+    if (isset($form_settings[$entity_type_id]['hidden'])) {
+      return $form_settings[$entity_type_id]['hidden'];
+    }
+    return FALSE;
+  }
+
+}
diff --git a/web/modules/entity_clone/src/Event/EntityCloneEvent.php b/web/modules/entity_clone/src/Event/EntityCloneEvent.php
new file mode 100644
index 0000000000000000000000000000000000000000..8889928858ad02c73e3192f379109cc1970bd79a
--- /dev/null
+++ b/web/modules/entity_clone/src/Event/EntityCloneEvent.php
@@ -0,0 +1,80 @@
+<?php
+
+namespace Drupal\entity_clone\Event;
+
+use Drupal\Core\Entity\EntityInterface;
+use Symfony\Component\EventDispatcher\Event;
+
+/**
+ * Represents entity selection as event.
+ */
+class EntityCloneEvent extends Event {
+
+  /**
+   * Entity being cloned.
+   *
+   * @var \Drupal\Core\Entity\EntityInterface
+   */
+  protected $entity;
+
+  /**
+   * New cloned entity.
+   *
+   * @var \Drupal\Core\Entity\EntityInterface
+   */
+  protected $clonedEntity;
+
+  /**
+   * Properties.
+   *
+   * @var array
+   */
+  protected $properties;
+
+  /**
+   * Constructs an EntityCloneEvent object.
+   *
+   * @param \Drupal\Core\Entity\EntityInterface $entity
+   *   The original entity that was cloned.
+   * @param \Drupal\Core\Entity\EntityInterface $cloned_entity
+   *   The clone of the original entity.
+   * @param array $properties
+   *   The entity's properties.
+   */
+  public function __construct(EntityInterface $entity, EntityInterface $cloned_entity, array $properties = []) {
+    $this->entity = $entity;
+    $this->clonedEntity = $cloned_entity;
+    $this->properties = $properties;
+  }
+
+  /**
+   * Gets entity being cloned.
+   *
+   * @return \Drupal\Core\Entity\EntityInterface
+   *   The original entity.
+   */
+  public function getEntity() {
+    return $this->entity;
+  }
+
+  /**
+   * Gets new cloned entity.
+   *
+   * @return \Drupal\Core\Entity\EntityInterface
+   *   The cloned entity.
+   */
+  public function getClonedEntity() {
+    return $this->clonedEntity;
+  }
+
+  /**
+   * Gets entity properties.
+   *
+   * @return array
+   *   The list of properties.
+   */
+  public function getProperties() {
+    return $this->properties;
+  }
+
+}
diff --git a/web/modules/entity_clone/src/Event/EntityCloneEvents.php b/web/modules/entity_clone/src/Event/EntityCloneEvents.php
new file mode 100644
index 0000000000000000000000000000000000000000..7faf8e2293c1a78e2f98c5e131aa8b330b5cb949
--- /dev/null
+++ b/web/modules/entity_clone/src/Event/EntityCloneEvents.php
@@ -0,0 +1,24 @@
+<?php
+
+namespace Drupal\entity_clone\Event;
+
+/**
+ * Contains all events thrown by entity clone.
+ */
+final class EntityCloneEvents {
+
+  /**
+   * The PRE_CLONE event occurs before the entity was cloned.
+   *
+   * @var string
+   */
+  const PRE_CLONE = 'entity_clone.pre_clone';
+
+  /**
+   * The POST_CLONE event occurs when an entity has been cloned and saved.
+   *
+   * @var string
+   */
+  const POST_CLONE = 'entity_clone.post_clone';
+
+}
diff --git a/web/modules/entity_clone/src/Form/EntityCloneForm.php b/web/modules/entity_clone/src/Form/EntityCloneForm.php
new file mode 100644
index 0000000000000000000000000000000000000000..8e7e658ca654d0ff242b7dc8c64d9649d53bebe3
--- /dev/null
+++ b/web/modules/entity_clone/src/Form/EntityCloneForm.php
@@ -0,0 +1,202 @@
+<?php
+
+namespace Drupal\entity_clone\Form;
+
+use Drupal\Core\Entity\EntityInterface;
+use Drupal\Core\Entity\EntityTypeManagerInterface;
+use Drupal\Core\Form\FormBase;
+use Drupal\Core\Form\FormStateInterface;
+use Drupal\Core\Render\Element;
+use Drupal\Core\Routing\RouteMatchInterface;
+use Drupal\Core\StringTranslation\TranslationManager;
+use Drupal\entity_clone\Event\EntityCloneEvent;
+use Drupal\entity_clone\Event\EntityCloneEvents;
+use Symfony\Component\DependencyInjection\ContainerInterface;
+use Symfony\Component\EventDispatcher\EventDispatcherInterface;
+
+/**
+ * Implements an entity Clone form.
+ */
+class EntityCloneForm extends FormBase {
+
+  /**
+   * The entity type manager.
+   *
+   * @var \Drupal\Core\Entity\EntityTypeManagerInterface
+   */
+  protected $entityTypeManager;
+
+  /**
+   * The entity ready to clone.
+   *
+   * @var \Drupal\Core\Entity\EntityInterface
+   */
+  protected $entity;
+
+  /**
+   * The entity type définition.
+   *
+   * @var \Drupal\Core\Entity\EntityTypeInterface
+   */
+  protected $entityTypeDefinition;
+
+  /**
+   * The string translation manager.
+   *
+   * @var \Drupal\Core\StringTranslation\TranslationManager
+   */
+  protected $stringTranslationManager;
+
+  /**
+   * Event dispatcher service.
+   *
+   * @var \Symfony\Component\EventDispatcher\EventDispatcherInterface
+   */
+  protected $eventDispatcher;
+
+  /**
+   * Constructs a new Entity Clone form.
+   *
+   * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
+   *   The entity type manager.
+   * @param \Drupal\Core\Routing\RouteMatchInterface $route_match
+   *   The route match service.
+   * @param \Drupal\Core\StringTranslation\TranslationManager $string_translation
+   *   The string translation manager.
+   * @param \Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher
+   *   The event dispatcher service.
+   *
+   * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException
+   */
+  public function __construct(EntityTypeManagerInterface $entity_type_manager, RouteMatchInterface $route_match, TranslationManager $string_translation, EventDispatcherInterface $eventDispatcher) {
+    $this->entityTypeManager = $entity_type_manager;
+    $this->stringTranslationManager = $string_translation;
+    $this->eventDispatcher = $eventDispatcher;
+
+    $parameter_name = $route_match->getRouteObject()->getOption('_entity_clone_entity_type_id');
+    $this->entity = $route_match->getParameter($parameter_name);
+
+    $this->entityTypeDefinition = $entity_type_manager->getDefinition($this->entity->getEntityTypeId());
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function create(ContainerInterface $container) {
+    return new static(
+      $container->get('entity_type.manager'),
+      $container->get('current_route_match'),
+      $container->get('string_translation'),
+      $container->get('event_dispatcher')
+    );
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getFormId() {
+    return 'entity_clone_form';
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function buildForm(array $form, FormStateInterface $form_state) {
+    if ($this->entity && $this->entityTypeDefinition->hasHandlerClass('entity_clone')) {
+
+      /** @var \Drupal\entity_clone\EntityClone\EntityCloneFormInterface $entity_clone_handler */
+      if ($this->entityTypeManager->hasHandler($this->entityTypeDefinition->id(), 'entity_clone_form')) {
+        $entity_clone_form_handler = $this->entityTypeManager->getHandler($this->entityTypeDefinition->id(), 'entity_clone_form');
+        $form = array_merge($form, $entity_clone_form_handler->formElement($this->entity));
+      }
+
+      $form['clone'] = [
+        '#type' => 'submit',
+        '#value' => 'Clone',
+      ];
+
+      $form['abort'] = [
+        '#type' => 'submit',
+        '#value' => 'Abort',
+        '#submit' => ['::cancelForm'],
+      ];
+    }
+
+    return $form;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function validateForm(array &$form, FormStateInterface $form_state) {}
+
+  /**
+   * {@inheritdoc}
+   */
+  public function submitForm(array &$form, FormStateInterface $form_state) {
+    /** @var \Drupal\entity_clone\EntityClone\EntityCloneInterface $entity_clone_handler */
+    $entity_clone_handler = $this->entityTypeManager->getHandler($this->entityTypeDefinition->id(), 'entity_clone');
+    if ($this->entityTypeManager->hasHandler($this->entityTypeDefinition->id(), 'entity_clone_form')) {
+      $entity_clone_form_handler = $this->entityTypeManager->getHandler($this->entityTypeDefinition->id(), 'entity_clone_form');
+    }
+
+    $properties = [];
+    if (isset($entity_clone_form_handler) && $entity_clone_form_handler) {
+      $properties = $entity_clone_form_handler->getValues($form_state);
+    }
+
+    $duplicate = $this->entity->createDuplicate();
+
+    $this->eventDispatcher->dispatch(EntityCloneEvents::PRE_CLONE, new EntityCloneEvent($this->entity, $duplicate, $properties));
+    $cloned_entity = $entity_clone_handler->cloneEntity($this->entity, $duplicate, $properties);
+    $this->eventDispatcher->dispatch(EntityCloneEvents::POST_CLONE, new EntityCloneEvent($this->entity, $duplicate, $properties));
+
+    drupal_set_message($this->stringTranslationManager->translate('The entity <em>@entity (@entity_id)</em> of type <em>@type</em> was cloned', [
+      '@entity' => $this->entity->label(),
+      '@entity_id' => $this->entity->id(),
+      '@type' => $this->entity->getEntityTypeId(),
+    ]));
+
+    $this->formSetRedirect($form_state, $cloned_entity);
+  }
+
+  /**
+   * Cancel form handler.
+   *
+   * @param array $form
+   *   An associative array containing the structure of the form.
+   * @param \Drupal\Core\Form\FormStateInterface $form_state
+   *   The current state of the form.
+   */
+  public function cancelForm(array &$form, FormStateInterface $form_state) {
+    $this->formSetRedirect($form_state, $this->entity);
+  }
+
+  /**
+   * Set a redirect on form state.
+   *
+   * @param \Drupal\Core\Form\FormStateInterface $form_state
+   *   The current state of the form.
+   * @param \Drupal\Core\Entity\EntityInterface $entity
+   *   The cloned entity.
+   */
+  protected function formSetRedirect(FormStateInterface $form_state, EntityInterface $entity) {
+    if ($entity && $entity->hasLinkTemplate('canonical')) {
+      $form_state->setRedirect($entity->toUrl()->getRouteName(), $entity->toUrl()->getRouteParameters());
+    }
+    else {
+      $form_state->setRedirect('<front>');
+    }
+  }
+
+  /**
+   * Gets the entity of this form.
+   *
+   * @return \Drupal\Core\Entity\EntityInterface
+   *   The entity.
+   */
+  public function getEntity() {
+    return $this->entity;
+  }
+
+}
diff --git a/web/modules/entity_clone/src/Form/EntityCloneSettingsForm.php b/web/modules/entity_clone/src/Form/EntityCloneSettingsForm.php
new file mode 100644
index 0000000000000000000000000000000000000000..9dde82bf5b60c2eec92c0e1cdf6cbc6f3396ef7a
--- /dev/null
+++ b/web/modules/entity_clone/src/Form/EntityCloneSettingsForm.php
@@ -0,0 +1,125 @@
+<?php
+
+namespace Drupal\entity_clone\Form;
+
+use Drupal\Core\Config\ConfigFactoryInterface;
+use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
+use Drupal\Core\Form\ConfigFormBase;
+use Drupal\Core\Form\FormStateInterface;
+use Drupal\entity_clone\EntityCloneSettingsManager;
+use Symfony\Component\DependencyInjection\ContainerInterface;
+
+/**
+ * Provide the settings form for entity clone.
+ */
+class EntityCloneSettingsForm extends ConfigFormBase implements ContainerInjectionInterface {
+
+  /**
+   * The entity clone settings manager.
+   *
+   * @var \Drupal\entity_clone\EntityCloneSettingsManager
+   */
+  protected $entityCloneSettingsManager;
+
+  /**
+   * {@inheritdoc}
+   *
+   * @var \Drupal\entity_clone\EntityCloneSettingsManager $entity_clone_settings_manager
+   */
+  public function __construct(ConfigFactoryInterface $config_factory, EntityCloneSettingsManager $entity_clone_settings_manager) {
+    parent::__construct($config_factory);
+    $this->entityCloneSettingsManager = $entity_clone_settings_manager;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function create(ContainerInterface $container) {
+    return new static(
+      $container->get('config.factory'),
+      $container->get('entity_clone.settings.manager')
+    );
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getEditableConfigNames() {
+    return ['entity_clone.settings'];
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getFormId() {
+    return 'entity_clone_settings_form';
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function buildForm(array $form, FormStateInterface $form_state) {
+    $form['#tree'] = TRUE;
+
+    $form['form_settings'] = [
+      '#tree' => TRUE,
+      '#type' => 'fieldset',
+      '#title' => $this->t('Clone form settings'),
+      '#description' => $this->t("
+        For each type of child entity (the entity that's referenced by the entity being
+        cloned), please set your cloning preferences. This will affect the clone form presented to users when they
+        clone entities. Default behaviour for whether or not the child entities should be cloned is specified in
+        the left-most column.  To prevent users from altering behaviour for each type when they're actually cloning
+        (but still allowing them to see what will happen), use the middle column. The right-most column can be used
+        to hide the form options from users completely. This will run the clone operation with the defaults set here
+        (in the left-most column). See the clone form (by cloning an entity) for more information.
+      "),
+      '#open' => TRUE,
+      '#collapsible' => FALSE,
+    ];
+
+    $form['form_settings']['table'] = [
+      '#type' => 'table',
+      '#header' => [
+        'label' => $this->t('Label'),
+        'default_value' => $this->t('Checkboxes default value'),
+        'disable'  => $this->t('Disable checkboxes'),
+        'hidden' => $this->t('Hide checkboxes'),
+      ],
+    ];
+
+    foreach ($this->entityCloneSettingsManager->getContentEntityTypes() as $type_id => $type) {
+      $form['form_settings']['table'][$type_id] = [
+        'label' => [
+          '#type' => 'label',
+          '#title' => $this->t('@type', [
+            '@type' => $type->getLabel(),
+          ]),
+        ],
+        'default_value' => [
+          '#type' => 'checkbox',
+          '#default_value' => $this->entityCloneSettingsManager->getDefaultValue($type_id),
+        ],
+        'disable' => [
+          '#type' => 'checkbox',
+          '#default_value' => $this->entityCloneSettingsManager->getDisableValue($type_id),
+        ],
+        'hidden' => [
+          '#type' => 'checkbox',
+          '#default_value' => $this->entityCloneSettingsManager->getHiddenValue($type_id),
+        ],
+      ];
+    }
+
+    return parent::buildForm($form, $form_state);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function submitForm(array &$form, FormStateInterface $form_state) {
+    $this->entityCloneSettingsManager->setFormSettings($form_state->getValue('form_settings'));
+    parent::submitForm($form, $form_state);
+  }
+
+}
diff --git a/web/modules/entity_clone/src/Plugin/Derivative/DynamicLocalTasks.php b/web/modules/entity_clone/src/Plugin/Derivative/DynamicLocalTasks.php
new file mode 100644
index 0000000000000000000000000000000000000000..44e1689a263ef7f31307695207856b3398fc96d6
--- /dev/null
+++ b/web/modules/entity_clone/src/Plugin/Derivative/DynamicLocalTasks.php
@@ -0,0 +1,77 @@
+<?php
+
+namespace Drupal\entity_clone\Plugin\Derivative;
+
+use Drupal\Component\Plugin\Derivative\DeriverBase;
+use Drupal\Core\Entity\EntityTypeManagerInterface;
+use Drupal\Core\Plugin\Discovery\ContainerDeriverInterface;
+use Drupal\Core\StringTranslation\TranslationManager;
+use Symfony\Component\DependencyInjection\ContainerInterface;
+
+/**
+ * Defines dynamic local tasks.
+ */
+class DynamicLocalTasks extends DeriverBase implements ContainerDeriverInterface {
+
+  /**
+   * The entity type manager.
+   *
+   * @var \Drupal\Core\Entity\EntityTypeManagerInterface
+   */
+  protected $entityTypeManager;
+
+  /**
+   * The translation manager.
+   *
+   * @var \Drupal\Core\StringTranslation\TranslationManager
+   */
+  protected $translationManager;
+
+  /**
+   * Constructs a new DynamicLocalTasks.
+   *
+   * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
+   *   The entity type manager.
+   * @param \Drupal\Core\StringTranslation\TranslationManager $string_translation
+   *   The translation manager.
+   */
+  public function __construct(EntityTypeManagerInterface $entity_type_manager, TranslationManager $string_translation) {
+    $this->entityTypeManager = $entity_type_manager;
+    $this->translationManager = $string_translation;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function create(ContainerInterface $container, $base_plugin_id) {
+    return new static(
+      $container->get('entity_type.manager'),
+      $container->get('string_translation')
+    );
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getDerivativeDefinitions($base_plugin_definition) {
+    $this->derivatives = [];
+
+    /** @var \Drupal\Core\Entity\EntityTypeInterface $entity_type */
+    foreach ($this->entityTypeManager->getDefinitions() as $entity_type_id => $entity_type) {
+      $has_clone_path = $entity_type->hasLinkTemplate('clone-form');
+      $has_canonical_path = $entity_type->hasLinkTemplate('canonical');
+
+      if ($has_clone_path) {
+        $this->derivatives["$entity_type_id.clone_tab"] = array(
+          'route_name' => "entity.$entity_type_id.clone_form",
+          'title' => $this->translationManager->translate('Clone'),
+          'base_route' => "entity.$entity_type_id." . ($has_canonical_path ? "canonical" : "edit_form"),
+          'weight' => 100,
+        );
+      }
+    }
+
+    return $this->derivatives;
+  }
+
+}
diff --git a/web/modules/entity_clone/src/Routing/RouteSubscriber.php b/web/modules/entity_clone/src/Routing/RouteSubscriber.php
new file mode 100644
index 0000000000000000000000000000000000000000..f3bf092f73d2837e765e04055d26f031368b256f
--- /dev/null
+++ b/web/modules/entity_clone/src/Routing/RouteSubscriber.php
@@ -0,0 +1,85 @@
+<?php
+
+namespace Drupal\entity_clone\Routing;
+
+use Drupal\Core\Entity\EntityTypeInterface;
+use Drupal\Core\Entity\EntityTypeManagerInterface;
+use Drupal\Core\Routing\RouteSubscriberBase;
+use Drupal\Core\Routing\RoutingEvents;
+use Symfony\Component\Routing\Route;
+use Symfony\Component\Routing\RouteCollection;
+
+/**
+ * Subscriber for Entity Clone routes.
+ */
+class RouteSubscriber extends RouteSubscriberBase {
+
+  /**
+   * The entity type manager service.
+   *
+   * @var \Drupal\Core\Entity\EntityTypeManagerInterface
+   */
+  protected $entityTypeManager;
+
+  /**
+   * Constructs a new RouteSubscriber object.
+   *
+   * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager
+   *   The entity type manager.
+   */
+  public function __construct(EntityTypeManagerInterface $entity_manager) {
+    $this->entityTypeManager = $entity_manager;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function alterRoutes(RouteCollection $collection) {
+    foreach ($this->entityTypeManager->getDefinitions() as $entity_type_id => $entity_type) {
+      if ($route = $this->getEntityCloneRoute($entity_type)) {
+        $collection->add("entity.$entity_type_id.clone_form", $route);
+      }
+    }
+  }
+
+  /**
+   * Gets the entity_clone route.
+   *
+   * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
+   *   The entity type.
+   *
+   * @return \Symfony\Component\Routing\Route|null
+   *   The generated route, if available.
+   */
+  protected function getEntityCloneRoute(EntityTypeInterface $entity_type) {
+    if ($clone_form = $entity_type->getLinkTemplate('clone-form')) {
+      $entity_type_id = $entity_type->id();
+      $route = new Route($clone_form);
+      $route
+        ->addDefaults([
+          '_form' => '\Drupal\entity_clone\Form\EntityCloneForm',
+          '_title' => 'Clone ' . $entity_type->getLabel(),
+        ])
+        ->addRequirements([
+          '_permission' => 'clone ' . $entity_type->id() . ' entity',
+        ])
+        ->setOption('_entity_clone_entity_type_id', $entity_type_id)
+        ->setOption('_admin_route', TRUE)
+        ->setOption('parameters', [
+          $entity_type_id => ['type' => 'entity:' . $entity_type_id],
+        ]);
+
+      return $route;
+    }
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function getSubscribedEvents() {
+    $events = parent::getSubscribedEvents();
+    $events[RoutingEvents::ALTER] = 'onAlterRoutes';
+    return $events;
+  }
+
+}
diff --git a/web/modules/entity_clone/src/Tests/EntityCloneActionTest.php b/web/modules/entity_clone/src/Tests/EntityCloneActionTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..f60728753444b52e2c06f9ab28a8e8a0141e4297
--- /dev/null
+++ b/web/modules/entity_clone/src/Tests/EntityCloneActionTest.php
@@ -0,0 +1,93 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\entity_clone\Tests\EntityCloneActionTest.
+ */
+
+namespace Drupal\entity_clone\Tests;
+
+use Drupal\simpletest\WebTestBase;
+
+/**
+ * Create an action and test a clone.
+ *
+ * @group entity_clone
+ */
+class EntityCloneActionTest extends WebTestBase {
+
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = ['entity_clone', 'action'];
+
+  /**
+   * Permissions to grant admin user.
+   *
+   * @var array
+   */
+  protected $permissions = [
+    'administer actions',
+    'clone action entity'
+  ];
+
+  /**
+   * An administrative user with permission to configure actions settings.
+   *
+   * @var \Drupal\user\UserInterface
+   */
+  protected $adminUser;
+
+  /**
+   * Sets the test up.
+   */
+  protected function setUp() {
+    parent::setUp();
+
+    $this->adminUser = $this->drupalCreateUser($this->permissions);
+    $this->drupalLogin($this->adminUser);
+  }
+
+  public function testActionEntityClone() {
+    foreach (\Drupal::service('plugin.manager.action')->getDefinitions() as $id => $definition) {
+      if (is_subclass_of($definition['class'], '\Drupal\Core\Plugin\PluginFormInterface') && $definition['label'] == 'Send email') {
+        $action_key = $id;
+        break;
+      }
+    }
+
+    $edit = [
+      'label' => 'Test send email action for clone',
+      'id' => 'test_send_email_for_clone',
+      'recipient' => 'test@recipient.com',
+      'subject' => 'test subject',
+      'message' => 'test message',
+    ];
+    $this->drupalPostForm("admin/config/system/actions/add/$action_key", $edit, t('Save'));
+
+    $actions = \Drupal::entityTypeManager()
+      ->getStorage('action')
+      ->loadByProperties([
+        'id' => $edit['id'],
+      ]);
+    $action = reset($actions);
+
+    $edit = [
+      'label' => 'Test send email action cloned',
+      'id' => 'test_send_email_cloned',
+    ];
+    $this->drupalPostForm('entity_clone/action/' . $action->id(), $edit, t('Clone'));
+
+    $actions = \Drupal::entityTypeManager()
+      ->getStorage('action')
+      ->loadByProperties([
+        'id' => $edit['id'],
+      ]);
+    $action = reset($actions);
+    $this->assertTrue($action, 'Test action cloned found in database.');
+  }
+
+}
+
diff --git a/web/modules/entity_clone/src/Tests/EntityCloneBlockTest.php b/web/modules/entity_clone/src/Tests/EntityCloneBlockTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..07295d543147fba4f51f21dcc94e7daf0fba7013
--- /dev/null
+++ b/web/modules/entity_clone/src/Tests/EntityCloneBlockTest.php
@@ -0,0 +1,82 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\entity_clone\Tests\EntityCloneBlockTest.
+ */
+
+namespace Drupal\entity_clone\Tests;
+
+use Drupal\block\Entity\Block;
+use Drupal\simpletest\WebTestBase;
+
+/**
+ * Create an block and test a clone.
+ *
+ * @group entity_clone
+ */
+class EntityCloneBlockTest extends WebTestBase {
+
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = ['entity_clone', 'block'];
+
+  /**
+   * Permissions to grant admin user.
+   *
+   * @var array
+   */
+  protected $permissions = [
+    'administer blocks',
+    'clone block entity'
+  ];
+
+  /**
+   * An administrative user with permission to configure blocks settings.
+   *
+   * @var \Drupal\user\UserInterface
+   */
+  protected $adminUser;
+
+  /**
+   * Sets the test up.
+   */
+  protected function setUp() {
+    parent::setUp();
+
+    $this->adminUser = $this->drupalCreateUser($this->permissions);
+    $this->drupalLogin($this->adminUser);
+  }
+
+  public function testBlockEntityClone() {
+    $config = \Drupal::configFactory();
+    $block = Block::create([
+      'plugin' => 'test_block',
+      'region' => 'sidebar_first',
+      'id' => 'test_block',
+      'theme' => $config->get('system.theme')->get('default'),
+      'label' => $this->randomMachineName(8),
+      'visibility' => [],
+      'weight' => 0,
+    ]);
+    $block->save();
+
+    $edit = [
+      'id' => 'test_block_cloned',
+    ];
+    $this->drupalPostForm('entity_clone/block/' . $block->id(), $edit, t('Clone'));
+
+    $blocks = \Drupal::entityTypeManager()
+      ->getStorage('block')
+      ->loadByProperties([
+        'id' => $edit['id'],
+      ]);
+    $block = reset($blocks);
+    $this->assertTrue($block, 'Test block cloned found in database.');
+  }
+
+}
+
diff --git a/web/modules/entity_clone/src/Tests/EntityCloneCommentTest.php b/web/modules/entity_clone/src/Tests/EntityCloneCommentTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..33ce635a046fce4cce8017ace10876f658cd3c66
--- /dev/null
+++ b/web/modules/entity_clone/src/Tests/EntityCloneCommentTest.php
@@ -0,0 +1,75 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\entity_clone\Tests\EntityCloneCommentTest.
+ */
+
+namespace Drupal\entity_clone\Tests;
+
+use Drupal\comment\Tests\CommentTestBase;
+use Drupal\comment\Tests\CommentTestTrait;
+
+/**
+ * Create a comment and test a clone.
+ *
+ * @group entity_clone
+ */
+class EntityCloneCommentTest extends CommentTestBase {
+
+  use CommentTestTrait;
+
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = ['entity_clone', 'block', 'comment', 'node', 'history', 'field_ui', 'datetime'];
+
+  /**
+   * Permissions to grant admin user.
+   *
+   * @var array
+   */
+  protected $permissions = [
+    'administer content types',
+    'administer comments',
+    'administer comment types',
+    'administer comment fields',
+    'administer comment display',
+    'skip comment approval',
+    'post comments',
+    'access comments',
+    'access user profiles',
+    'access content',
+    'clone comment entity'
+  ];
+
+  /**
+   * Sets the test up.
+   */
+  protected function setUp() {
+    parent::setUp();
+
+    $this->adminUser = $this->drupalCreateUser($this->permissions);
+    $this->drupalLogin($this->adminUser);
+  }
+
+  public function testCommentEntityClone() {
+    $subject = 'Test comment for clone';
+    $body = $this->randomMachineName();
+    $comment = $this->postComment($this->node, $body, $subject, TRUE);
+
+    $this->drupalPostForm('entity_clone/comment/' . $comment->id(), [], t('Clone'));
+
+    $comments = \Drupal::entityTypeManager()
+      ->getStorage('comment')
+      ->loadByProperties([
+        'subject' => $subject . ' - Cloned',
+        'comment_body' => $body,
+      ]);
+    $comments = reset($comments);
+    $this->assertTrue($comments, 'Test comment cloned found in database.');
+  }
+
+}
\ No newline at end of file
diff --git a/web/modules/entity_clone/src/Tests/EntityCloneContentRecursiveTest.php b/web/modules/entity_clone/src/Tests/EntityCloneContentRecursiveTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..589bfcfb8a472a72bcf9cab30a89e94b47d3943e
--- /dev/null
+++ b/web/modules/entity_clone/src/Tests/EntityCloneContentRecursiveTest.php
@@ -0,0 +1,131 @@
+<?php
+
+namespace Drupal\entity_clone\Tests;
+
+use Drupal\node\Entity\Node;
+use Drupal\node\Tests\NodeTestBase;
+use Drupal\taxonomy\Entity\Term;
+
+/**
+ * Create a content and test a clone.
+ *
+ * @group entity_clone
+ */
+class EntityCloneContentRecursiveTest extends NodeTestBase {
+
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = ['entity_clone', 'block', 'node', 'datetime'];
+
+  /**
+   * Profile to install.
+   *
+   * @var string
+   */
+  protected $profile = 'standard';
+
+  /**
+   * Permissions to grant admin user.
+   *
+   * @var array
+   */
+  protected $permissions = [
+    'bypass node access',
+    'administer nodes',
+    'clone node entity',
+  ];
+
+  /**
+   * A user with permission to bypass content access checks.
+   *
+   * @var \Drupal\user\UserInterface
+   */
+  protected $adminUser;
+
+  /**
+   * Sets the test up.
+   */
+  protected function setUp() {
+    parent::setUp();
+
+    $this->adminUser = $this->drupalCreateUser($this->permissions);
+    $this->drupalLogin($this->adminUser);
+  }
+
+  /**
+   * Test clone a content entity with another entities attached.
+   */
+  public function testContentEntityClone() {
+
+    $term_title = $this->randomMachineName(8);
+    $term = Term::create([
+      'vid' => 'tags',
+      'name' => $term_title,
+    ]);
+    $term->save();
+
+    $node_title = $this->randomMachineName(8);
+    $node = Node::create([
+      'type' => 'article',
+      'title' => $node_title,
+      'field_tags' => [
+        'target_id' => $term->id(),
+      ],
+    ]);
+    $node->save();
+
+    $settings = [
+      'taxonomy_term' => [
+        'default_value' => 1,
+        'disable' => 0,
+        'hidden' => 0,
+      ]
+    ];
+    \Drupal::service('config.factory')->getEditable('entity_clone.settings')->set('form_settings', $settings)->save();
+
+    $this->drupalPostForm('entity_clone/node/' . $node->id(), [
+      'recursive[node.article.field_tags][references][' . $term->id() . '][clone]' => 1,
+    ], t('Clone'));
+
+    $nodes = \Drupal::entityTypeManager()
+      ->getStorage('node')
+      ->loadByProperties([
+        'title' => $node_title . ' - Cloned',
+      ]);
+    /** @var \Drupal\node\Entity\Node $node */
+    $node = reset($nodes);
+    $this->assertTrue($node, 'Test node cloned found in database.');
+
+    $terms = \Drupal::entityTypeManager()
+      ->getStorage('taxonomy_term')
+      ->loadByProperties([
+        'name' => $term_title . ' - Cloned',
+      ]);
+    /** @var \Drupal\taxonomy\Entity\Term $term */
+    $term = reset($terms);
+    $this->assertTrue($term, 'Test term referenced by node cloned too found in database.');
+
+    $node->delete();
+    $term->delete();
+
+    $nodes = \Drupal::entityTypeManager()
+      ->getStorage('node')
+      ->loadByProperties([
+        'title' => $node_title,
+      ]);
+    $node = reset($nodes);
+    $this->assertTrue($node, 'Test original node found in database.');
+
+    $terms = \Drupal::entityTypeManager()
+      ->getStorage('taxonomy_term')
+      ->loadByProperties([
+        'name' => $term_title,
+      ]);
+    $term = reset($terms);
+    $this->assertTrue($term, 'Test original term found in database.');
+  }
+
+}
diff --git a/web/modules/entity_clone/src/Tests/EntityCloneContentTest.php b/web/modules/entity_clone/src/Tests/EntityCloneContentTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..0e751fe2b52fd96f0936df51f810ecc5f7acbe55
--- /dev/null
+++ b/web/modules/entity_clone/src/Tests/EntityCloneContentTest.php
@@ -0,0 +1,74 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\entity_clone\Tests\EntityCloneContentTest.
+ */
+
+namespace Drupal\entity_clone\Tests;
+
+use Drupal\node\Entity\Node;
+use Drupal\node\Tests\NodeTestBase;
+
+/**
+ * Create a content and test a clone.
+ *
+ * @group entity_clone
+ */
+class EntityCloneContentTest extends NodeTestBase {
+
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = ['entity_clone', 'block', 'node', 'datetime'];
+
+  /**
+   * Permissions to grant admin user.
+   *
+   * @var array
+   */
+  protected $permissions = [
+    'bypass node access',
+    'administer nodes',
+    'clone node entity'
+  ];
+
+  /**
+   * A user with permission to bypass content access checks.
+   *
+   * @var \Drupal\user\UserInterface
+   */
+  protected $adminUser;
+
+  /**
+   * Sets the test up.
+   */
+  protected function setUp() {
+    parent::setUp();
+
+    $this->adminUser = $this->drupalCreateUser($this->permissions);
+    $this->drupalLogin($this->adminUser);
+  }
+
+  public function testContentEntityClone() {
+    $node_title = $this->randomMachineName(8);
+    $node = Node::create([
+      'type' => 'page',
+      'title' => $node_title,
+    ]);
+    $node->save();
+
+    $this->drupalPostForm('entity_clone/node/' . $node->id(), [], t('Clone'));
+
+    $nodes = \Drupal::entityTypeManager()
+      ->getStorage('node')
+      ->loadByProperties([
+        'title' => $node_title . ' - Cloned',
+      ]);
+    $node = reset($nodes);
+    $this->assertTrue($node, 'Test node cloned found in database.');
+  }
+
+}
\ No newline at end of file
diff --git a/web/modules/entity_clone/src/Tests/EntityCloneCustomBlockTest.php b/web/modules/entity_clone/src/Tests/EntityCloneCustomBlockTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..6da92651e28bd0327fa3145940b6c15711d77c01
--- /dev/null
+++ b/web/modules/entity_clone/src/Tests/EntityCloneCustomBlockTest.php
@@ -0,0 +1,71 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\entity_clone\Tests\EntityCloneCustomBlockTest.
+ */
+
+namespace Drupal\entity_clone\Tests;
+
+use Drupal\block_content\Tests\BlockContentTestBase;
+
+/**
+ * Creat ea block and test a clone.
+ *
+ * @group entity_clone
+ */
+class EntityCloneCustomBlockTest extends BlockContentTestBase {
+
+  /**
+   * Modules to enable.
+   *
+   * Enable dummy module that implements hook_block_insert() for exceptions and
+   * field_ui to edit display settings.
+   *
+   * @var array
+   */
+  public static $modules = ['entity_clone', 'block', 'block_content'];
+
+  /**
+   * Permissions to grant admin user.
+   *
+   * @var array
+   */
+  protected $permissions = ['administer blocks', 'clone block_content entity'];
+
+  /**
+   * Sets the test up.
+   */
+  protected function setUp() {
+    parent::setUp();
+    $this->drupalLogin($this->adminUser);
+  }
+
+  public function testCustomBlockEntityClone() {
+
+    $edit = array();
+    $edit['info[0][value]'] = 'Test block ready to clone';
+    $edit['body[0][value]'] = $this->randomMachineName(16);
+    $this->drupalPostForm('block/add/basic', $edit, t('Save'));
+
+    $blocks = \Drupal::entityTypeManager()
+      ->getStorage('block_content')
+      ->loadByProperties([
+        'info' => $edit['info[0][value]'],
+      ]);
+    $block = reset($blocks);
+    $this->assertTrue($block, 'Test Block for clone found in database.');
+
+    $this->drupalPostForm('entity_clone/block_content/' . $block->id(), [], t('Clone'));
+
+    $blocks = \Drupal::entityTypeManager()
+      ->getStorage('block_content')
+      ->loadByProperties([
+        'info' => $edit['info[0][value]'] . ' - Cloned',
+        'body' => $edit['body[0][value]'],
+      ]);
+    $block = reset($blocks);
+    $this->assertTrue($block, 'Test Block cloned found in database.');
+  }
+
+}
\ No newline at end of file
diff --git a/web/modules/entity_clone/src/Tests/EntityCloneDateFormatTest.php b/web/modules/entity_clone/src/Tests/EntityCloneDateFormatTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..40a7442128d9be337c44ea97bf7a76c0daca278a
--- /dev/null
+++ b/web/modules/entity_clone/src/Tests/EntityCloneDateFormatTest.php
@@ -0,0 +1,84 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\entity_clone\Tests\EntityCloneDateFormatTest.
+ */
+
+namespace Drupal\entity_clone\Tests;
+
+use Drupal\simpletest\WebTestBase;
+
+/**
+ * Create a date format and test a clone.
+ *
+ * @group entity_clone
+ */
+class EntityCloneDateFormatTest extends WebTestBase {
+
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = ['entity_clone'];
+
+  /**
+   * Permissions to grant admin user.
+   *
+   * @var array
+   */
+  protected $permissions = [
+    'clone date_format entity',
+    'administer site configuration'
+  ];
+
+  /**
+   * An administrative user with permission to configure date formats settings.
+   *
+   * @var \Drupal\user\UserInterface
+   */
+  protected $adminUser;
+
+  /**
+   * Sets the test up.
+   */
+  protected function setUp() {
+    parent::setUp();
+
+    $this->adminUser = $this->drupalCreateUser($this->permissions);
+    $this->drupalLogin($this->adminUser);
+  }
+
+  public function testDateFormatEntityClone() {
+    $edit = [
+      'label' => 'Test date format for clone',
+      'id' => 'test_date_format_for_clone',
+      'date_format_pattern' => 'Y m d',
+    ];
+    $this->drupalPostForm("admin/config/regional/date-time/formats/add", $edit, t('Add format'));
+
+    $date_formats = \Drupal::entityTypeManager()
+      ->getStorage('date_format')
+      ->loadByProperties([
+        'id' => $edit['id'],
+      ]);
+    $date_format = reset($date_formats);
+
+    $edit = [
+      'id' => 'test_date_format_cloned',
+      'label' => 'Test date format cloned',
+    ];
+    $this->drupalPostForm('entity_clone/date_format/' . $date_format->id(), $edit, t('Clone'));
+
+    $date_formats = \Drupal::entityTypeManager()
+      ->getStorage('date_format')
+      ->loadByProperties([
+        'id' => $edit['id'],
+      ]);
+    $date_format = reset($date_formats);
+    $this->assertTrue($date_format, 'Test date format cloned found in database.');
+  }
+
+}
+
diff --git a/web/modules/entity_clone/src/Tests/EntityCloneEntityFormModeTest.php b/web/modules/entity_clone/src/Tests/EntityCloneEntityFormModeTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..68235fe2acfebb4eef0d251b54c0feb42bc802e9
--- /dev/null
+++ b/web/modules/entity_clone/src/Tests/EntityCloneEntityFormModeTest.php
@@ -0,0 +1,76 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\entity_clone\Tests\EntityCloneEntityFormModeTest.
+ */
+
+namespace Drupal\entity_clone\Tests;
+
+use Drupal\simpletest\WebTestBase;
+
+/**
+ * Test an entity form mode clone.
+ *
+ * @group entity_clone
+ */
+class EntityCloneEntityFormModeTest extends WebTestBase {
+
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = ['entity_clone'];
+
+  /**
+   * Permissions to grant admin user.
+   *
+   * @var array
+   */
+  protected $permissions = [
+    'clone entity_form_mode entity'
+  ];
+
+  /**
+   * An administrative user with permission to configure entity form modes settings.
+   *
+   * @var \Drupal\user\UserInterface
+   */
+  protected $adminUser;
+
+  /**
+   * Sets the test up.
+   */
+  protected function setUp() {
+    parent::setUp();
+
+    $this->adminUser = $this->drupalCreateUser($this->permissions);
+    $this->drupalLogin($this->adminUser);
+  }
+
+  public function testEntityFormModeEntityClone() {
+    $entity_form_modes = \Drupal::entityTypeManager()
+      ->getStorage('entity_form_mode')
+      ->loadByProperties([
+        'id' => 'user.register',
+      ]);
+    $entity_form_mode = reset($entity_form_modes);
+
+    $edit = [
+      'label' => 'User register cloned form mode',
+      'id' => 'register_clone',
+    ];
+    $this->drupalPostForm('entity_clone/entity_form_mode/' . $entity_form_mode->id(), $edit, t('Clone'));
+
+    $entity_form_modes = \Drupal::entityTypeManager()
+      ->getStorage('entity_form_mode')
+      ->loadByProperties([
+        'id' => 'user.' . $edit['id'],
+      ]);
+    $entity_form_mode = reset($entity_form_modes);
+    $this->assertTrue($entity_form_mode, 'Test entity form mode cloned found in database.');
+  }
+
+}
+
diff --git a/web/modules/entity_clone/src/Tests/EntityCloneEntityViewModeTest.php b/web/modules/entity_clone/src/Tests/EntityCloneEntityViewModeTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..78768071a410c20e6d9dc43df4eb886defa139d9
--- /dev/null
+++ b/web/modules/entity_clone/src/Tests/EntityCloneEntityViewModeTest.php
@@ -0,0 +1,76 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\entity_clone\Tests\EntityCloneEntityViewModeTest.
+ */
+
+namespace Drupal\entity_clone\Tests;
+
+use Drupal\simpletest\WebTestBase;
+
+/**
+ * Test an entity view mode clone.
+ *
+ * @group entity_clone
+ */
+class EntityCloneEntityViewModeTest extends WebTestBase {
+
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = ['entity_clone'];
+
+  /**
+   * Permissions to grant admin user.
+   *
+   * @var array
+   */
+  protected $permissions = [
+    'clone entity_view_mode entity'
+  ];
+
+  /**
+   * An administrative user with permission to configure entity view modes settings.
+   *
+   * @var \Drupal\user\UserInterface
+   */
+  protected $adminUser;
+
+  /**
+   * Sets the test up.
+   */
+  protected function setUp() {
+    parent::setUp();
+
+    $this->adminUser = $this->drupalCreateUser($this->permissions);
+    $this->drupalLogin($this->adminUser);
+  }
+
+  public function testEntityViewModeEntityClone() {
+    $entity_view_modes = \Drupal::entityTypeManager()
+      ->getStorage('entity_view_mode')
+      ->loadByProperties([
+        'id' => 'user.full',
+      ]);
+    $entity_view_mode = reset($entity_view_modes);
+
+    $edit = [
+      'label' => 'User full cloned view mode',
+      'id' => 'register_clone',
+    ];
+    $this->drupalPostForm('entity_clone/entity_view_mode/' . $entity_view_mode->id(), $edit, t('Clone'));
+
+    $entity_view_modes = \Drupal::entityTypeManager()
+      ->getStorage('entity_view_mode')
+      ->loadByProperties([
+        'id' => 'user.' . $edit['id'],
+      ]);
+    $entity_view_mode = reset($entity_view_modes);
+    $this->assertTrue($entity_view_mode, 'Test entity view mode cloned found in database.');
+  }
+
+}
+
diff --git a/web/modules/entity_clone/src/Tests/EntityCloneFileTest.php b/web/modules/entity_clone/src/Tests/EntityCloneFileTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..d477aa0f9fa7b16ee4f259a4ec158bc7683f5814
--- /dev/null
+++ b/web/modules/entity_clone/src/Tests/EntityCloneFileTest.php
@@ -0,0 +1,79 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\entity_clone\Tests\EntityCloneFileTest.
+ */
+
+namespace Drupal\entity_clone\Tests;
+
+use Drupal\file\Entity\File;
+use Drupal\simpletest\WebTestBase;
+
+/**
+ * Create a filer and test a clone.
+ *
+ * @group entity_clone
+ */
+class EntityCloneFileTest extends WebTestBase {
+
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = ['entity_clone', 'file'];
+
+  /**
+   * Permissions to grant admin user.
+   *
+   * @var array
+   */
+  protected $permissions = [
+    'clone file entity'
+  ];
+
+  /**
+   * An administrative user with permission to configure files settings.
+   *
+   * @var \Drupal\user\UserInterface
+   */
+  protected $adminUser;
+
+  /**
+   * Sets the test up.
+   */
+  protected function setUp() {
+    parent::setUp();
+
+    $this->adminUser = $this->drupalCreateUser($this->permissions);
+    $this->drupalLogin($this->adminUser);
+  }
+
+  public function testFileEntityClone() {
+    /** @var \Drupal\file\FileInterface $file */
+    $file = File::create(array(
+      'uid' => 1,
+      'filename' => 'druplicon.txt',
+      'uri' => 'public://druplicon.txt',
+      'filemime' => 'text/plain',
+      'status' => FILE_STATUS_PERMANENT,
+    ));
+    file_put_contents($file->getFileUri(), 'hello world');
+    $file->save();
+
+    $this->drupalPostForm('entity_clone/file/' . $file->id(), [], t('Clone'));
+
+    $files = \Drupal::entityTypeManager()
+      ->getStorage('file')
+      ->loadByProperties([
+        'filename' => 'druplicon.txt - Cloned',
+      ]);
+    $file = reset($files);
+    $this->assertTrue($file, 'Test file cloned found in database.');
+
+    $this->assertEqual($file->getFileUri(), 'public://druplicon_0.txt', 'The stored file is also cloned.');
+  }
+
+}
+
diff --git a/web/modules/entity_clone/src/Tests/EntityCloneFilterFormatTest.php b/web/modules/entity_clone/src/Tests/EntityCloneFilterFormatTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..c458e2334a2160f84957ed096e8acfca716c9a48
--- /dev/null
+++ b/web/modules/entity_clone/src/Tests/EntityCloneFilterFormatTest.php
@@ -0,0 +1,83 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\entity_clone\Tests\EntityCloneFilterFormatTest.
+ */
+
+namespace Drupal\entity_clone\Tests;
+
+use Drupal\simpletest\WebTestBase;
+
+/**
+ * Create a filter format and test a clone.
+ *
+ * @group entity_clone
+ */
+class EntityCloneFilterFormatTest extends WebTestBase {
+
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = ['entity_clone', 'filter'];
+
+  /**
+   * Permissions to grant admin user.
+   *
+   * @var array
+   */
+  protected $permissions = [
+    'clone filter_format entity',
+    'administer filters'
+  ];
+
+  /**
+   * An administrative user with permission to configure filter formats settings.
+   *
+   * @var \Drupal\user\UserInterface
+   */
+  protected $adminUser;
+
+  /**
+   * Sets the test up.
+   */
+  protected function setUp() {
+    parent::setUp();
+
+    $this->adminUser = $this->drupalCreateUser($this->permissions);
+    $this->drupalLogin($this->adminUser);
+  }
+
+  public function testFilterFormatEntityClone() {
+    $edit = [
+      'name' => 'Test filter format for clone',
+      'format' => 'test_filter_format_for_clone',
+    ];
+    $this->drupalPostForm("admin/config/content/formats/add", $edit, t('Save configuration'));
+
+    $filter_formats = \Drupal::entityTypeManager()
+      ->getStorage('filter_format')
+      ->loadByProperties([
+        'format' => $edit['format'],
+      ]);
+    $filter_format = reset($filter_formats);
+
+    $edit = [
+      'id' => 'test_filter_format_cloned',
+      'label' => 'Test filter format cloned',
+    ];
+    $this->drupalPostForm('entity_clone/filter_format/' . $filter_format->id(), $edit, t('Clone'));
+
+    $filter_formats = \Drupal::entityTypeManager()
+      ->getStorage('filter_format')
+      ->loadByProperties([
+        'format' => $edit['id'],
+      ]);
+    $filter_format = reset($filter_formats);
+    $this->assertTrue($filter_format, 'Test filter format cloned found in database.');
+  }
+
+}
+
diff --git a/web/modules/entity_clone/src/Tests/EntityCloneImageStyleTest.php b/web/modules/entity_clone/src/Tests/EntityCloneImageStyleTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..648e22778470a62641f87c85cbff9a2c73a994db
--- /dev/null
+++ b/web/modules/entity_clone/src/Tests/EntityCloneImageStyleTest.php
@@ -0,0 +1,83 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\entity_clone\Tests\EntityCloneImageStyleTest.
+ */
+
+namespace Drupal\entity_clone\Tests;
+
+use Drupal\simpletest\WebTestBase;
+
+/**
+ * Create an image style and test a clone.
+ *
+ * @group entity_clone
+ */
+class EntityCloneImageStyleTest extends WebTestBase {
+
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = ['entity_clone', 'image'];
+
+  /**
+   * Permissions to grant admin user.
+   *
+   * @var array
+   */
+  protected $permissions = [
+    'clone image_style entity',
+    'administer image styles'
+  ];
+
+  /**
+   * An administrative user with permission to configure image styles settings.
+   *
+   * @var \Drupal\user\UserInterface
+   */
+  protected $adminUser;
+
+  /**
+   * Sets the test up.
+   */
+  protected function setUp() {
+    parent::setUp();
+
+    $this->adminUser = $this->drupalCreateUser($this->permissions);
+    $this->drupalLogin($this->adminUser);
+  }
+
+  public function testImageStyleEntityClone() {
+    $edit = [
+      'label' => 'Test image style for clone',
+      'name' => 'test_image_style_for_clone',
+    ];
+    $this->drupalPostForm("admin/config/media/image-styles/add", $edit, t('Create new style'));
+
+    $image_styles = \Drupal::entityTypeManager()
+      ->getStorage('image_style')
+      ->loadByProperties([
+        'name' => $edit['name'],
+      ]);
+    $image_style = reset($image_styles);
+
+    $edit = [
+      'id' => 'test_iamge_style_cloned',
+      'label' => 'Test image_style cloned',
+    ];
+    $this->drupalPostForm('entity_clone/image_style/' . $image_style->id(), $edit, t('Clone'));
+
+    $image_styles = \Drupal::entityTypeManager()
+      ->getStorage('image_style')
+      ->loadByProperties([
+        'name' => $edit['id'],
+      ]);
+    $image_style = reset($image_styles);
+    $this->assertTrue($image_style, 'Test image style cloned found in database.');
+  }
+
+}
+
diff --git a/web/modules/entity_clone/src/Tests/EntityCloneLanguageTest.php b/web/modules/entity_clone/src/Tests/EntityCloneLanguageTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..bffba1912764765428f4702b4b6df22ff2cd6935
--- /dev/null
+++ b/web/modules/entity_clone/src/Tests/EntityCloneLanguageTest.php
@@ -0,0 +1,82 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\entity_clone\Tests\EntityCloneLanguageTest.
+ */
+
+namespace Drupal\entity_clone\Tests;
+
+use Drupal\simpletest\WebTestBase;
+
+/**
+ * Create an language and test a clone.
+ *
+ * @group entity_clone
+ */
+class EntityCloneLanguageTest extends WebTestBase {
+
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = ['entity_clone', 'language'];
+
+  /**
+   * Permissions to grant admin user.
+   *
+   * @var array
+   */
+  protected $permissions = [
+    'administer languages',
+    'clone configurable_language entity'
+  ];
+
+  /**
+   * An administrative user with permission to configure languages settings.
+   *
+   * @var \Drupal\user\UserInterface
+   */
+  protected $adminUser;
+
+  /**
+   * Sets the test up.
+   */
+  protected function setUp() {
+    parent::setUp();
+
+    $this->adminUser = $this->drupalCreateUser($this->permissions);
+    $this->drupalLogin($this->adminUser);
+  }
+
+  public function testLanguageEntityClone() {
+    $edit = [
+      'predefined_langcode' => 'fr'
+    ];
+    $this->drupalPostForm("/admin/config/regional/language/add", $edit, t('Add language'));
+
+    $languages = \Drupal::entityTypeManager()
+      ->getStorage('configurable_language')
+      ->loadByProperties([
+        'id' => 'fr',
+      ]);
+    $language = reset($languages);
+
+    $edit = [
+      'id' => 'test_language_cloned',
+      'label' => 'French language cloned',
+    ];
+    $this->drupalPostForm('entity_clone/configurable_language/' . $language->id(), $edit, t('Clone'));
+
+    $languages = \Drupal::entityTypeManager()
+      ->getStorage('configurable_language')
+      ->loadByProperties([
+        'id' => $edit['id'],
+      ]);
+    $language = reset($languages);
+    $this->assertTrue($language, 'Test language cloned found in database.');
+  }
+
+}
+
diff --git a/web/modules/entity_clone/src/Tests/EntityCloneMenuTest.php b/web/modules/entity_clone/src/Tests/EntityCloneMenuTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..81c393df06b58bbf0255ab99e9281674b0f8607c
--- /dev/null
+++ b/web/modules/entity_clone/src/Tests/EntityCloneMenuTest.php
@@ -0,0 +1,78 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\entity_clone\Tests\EntityCloneMenuTest.
+ */
+
+namespace Drupal\entity_clone\Tests;
+
+use Drupal\simpletest\WebTestBase;
+
+/**
+ * Create a menu and test a clone.
+ *
+ * @group entity_clone
+ */
+class EntityCloneMenuTest extends WebTestBase {
+
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = ['entity_clone', 'menu_ui'];
+
+  /**
+   * Permissions to grant admin user.
+   *
+   * @var array
+   */
+  protected $permissions = [
+    'clone menu entity',
+    'administer menu'
+  ];
+
+  /**
+   * An administrative user with permission to configure menus settings.
+   *
+   * @var \Drupal\user\UserInterface
+   */
+  protected $adminUser;
+
+  /**
+   * Sets the test up.
+   */
+  protected function setUp() {
+    parent::setUp();
+
+    $this->adminUser = $this->drupalCreateUser($this->permissions);
+    $this->drupalLogin($this->adminUser);
+  }
+
+  public function testMenuEntityClone() {
+
+    $menus = \Drupal::entityTypeManager()
+      ->getStorage('menu')
+      ->loadByProperties([
+        'id' => 'account',
+      ]);
+    $menu = reset($menus);
+
+    $edit = [
+      'label' => 'Test menu cloned',
+      'id' => 'test_menu_cloned',
+    ];
+    $this->drupalPostForm('entity_clone/menu/' . $menu->id(), $edit, t('Clone'));
+
+    $menus = \Drupal::entityTypeManager()
+      ->getStorage('menu')
+      ->loadByProperties([
+        'id' => $edit['id'],
+      ]);
+    $menu = reset($menus);
+    $this->assertTrue($menu, 'Test menu cloned found in database.');
+  }
+
+}
+
diff --git a/web/modules/entity_clone/src/Tests/EntityCloneResponsiveImageStyleTest.php b/web/modules/entity_clone/src/Tests/EntityCloneResponsiveImageStyleTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..d6385fa89d8347375de3a473ce7729ea574401db
--- /dev/null
+++ b/web/modules/entity_clone/src/Tests/EntityCloneResponsiveImageStyleTest.php
@@ -0,0 +1,85 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\entity_clone\Tests\EntityCloneResponsiveImageStyleTest.
+ */
+
+namespace Drupal\entity_clone\Tests;
+
+use Drupal\simpletest\WebTestBase;
+
+/**
+ * Create a responsive image style and test a clone.
+ *
+ * @group entity_clone
+ */
+class EntityCloneResponsiveImageStyleTest extends WebTestBase {
+
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = ['entity_clone', 'responsive_image'];
+
+  /**
+   * Permissions to grant admin user.
+   *
+   * @var array
+   */
+  protected $permissions = [
+    'clone responsive_image_style entity',
+    'administer responsive images'
+  ];
+
+  /**
+   * An administrative user with permission to configure image styles settings.
+   *
+   * @var \Drupal\user\UserInterface
+   */
+  protected $adminUser;
+
+  /**
+   * Sets the test up.
+   */
+  protected function setUp() {
+    parent::setUp();
+
+    $this->adminUser = $this->drupalCreateUser($this->permissions);
+    $this->drupalLogin($this->adminUser);
+  }
+
+  public function testResponsiveImageStyleEntityClone() {
+    $edit = [
+      'label' => 'Test responsive image style for clone',
+      'id' => 'test_responsive_image_style_for_clone',
+      'breakpoint_group' => 'responsive_image',
+      'fallback_image_style' => 'large',
+    ];
+    $this->drupalPostForm("admin/config/media/responsive-image-style/add", $edit, t('Save'));
+
+    $responsive_image_styles = \Drupal::entityTypeManager()
+      ->getStorage('responsive_image_style')
+      ->loadByProperties([
+        'id' => $edit['id'],
+      ]);
+    $responsive_image_style = reset($responsive_image_styles);
+
+    $edit = [
+      'id' => 'test_responsive_image_style_cloned',
+      'label' => 'Test responsive image style cloned',
+    ];
+    $this->drupalPostForm('entity_clone/responsive_image_style/' . $responsive_image_style->id(), $edit, t('Clone'));
+
+    $responsive_image_styles = \Drupal::entityTypeManager()
+      ->getStorage('responsive_image_style')
+      ->loadByProperties([
+        'id' => $edit['id'],
+      ]);
+    $responsive_image_style = reset($responsive_image_styles);
+    $this->assertTrue($responsive_image_style, 'Test responsive image style cloned found in database.');
+  }
+
+}
+
diff --git a/web/modules/entity_clone/src/Tests/EntityCloneRoleTest.php b/web/modules/entity_clone/src/Tests/EntityCloneRoleTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..b551305754e669e18424d2f2ab2dacc0e5f92f0c
--- /dev/null
+++ b/web/modules/entity_clone/src/Tests/EntityCloneRoleTest.php
@@ -0,0 +1,83 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\entity_clone\Tests\EntityCloneRoleTest.
+ */
+
+namespace Drupal\entity_clone\Tests;
+
+use Drupal\simpletest\WebTestBase;
+
+/**
+ * Create a role and test a clone.
+ *
+ * @group entity_clone
+ */
+class EntityCloneRoleTest extends WebTestBase {
+
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = ['entity_clone', 'user'];
+
+  /**
+   * Permissions to grant admin user.
+   *
+   * @var array
+   */
+  protected $permissions = [
+    'administer permissions',
+    'clone user_role entity'
+  ];
+
+  /**
+   * An administrative user with permission to configure roles settings.
+   *
+   * @var \Drupal\user\UserInterface
+   */
+  protected $adminUser;
+
+  /**
+   * Sets the test up.
+   */
+  protected function setUp() {
+    parent::setUp();
+
+    $this->adminUser = $this->drupalCreateUser($this->permissions);
+    $this->drupalLogin($this->adminUser);
+  }
+
+  public function testRoleEntityClone() {
+    $edit = [
+      'label' => 'Test role for clone',
+      'id' => 'test_role_for_clone',
+    ];
+    $this->drupalPostForm("/admin/people/roles/add", $edit, t('Save'));
+
+    $roles = \Drupal::entityTypeManager()
+      ->getStorage('user_role')
+      ->loadByProperties([
+        'id' => $edit['id'],
+      ]);
+    $role = reset($roles);
+
+    $edit = [
+      'id' => 'test_role_cloned',
+      'label' => 'Test role cloned',
+    ];
+    $this->drupalPostForm('entity_clone/user_role/' . $role->id(), $edit, t('Clone'));
+
+    $roles = \Drupal::entityTypeManager()
+      ->getStorage('user_role')
+      ->loadByProperties([
+        'id' => $edit['id'],
+      ]);
+    $role = reset($roles);
+    $this->assertTrue($role, 'Test role cloned found in database.');
+  }
+
+}
+
diff --git a/web/modules/entity_clone/src/Tests/EntityCloneSearchPageTest.php b/web/modules/entity_clone/src/Tests/EntityCloneSearchPageTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..24cee534f17e5e7a2a26fb150e3b8ce5e41ae610
--- /dev/null
+++ b/web/modules/entity_clone/src/Tests/EntityCloneSearchPageTest.php
@@ -0,0 +1,84 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\entity_clone\Tests\EntityCloneSearchPageTest.
+ */
+
+namespace Drupal\entity_clone\Tests;
+
+use Drupal\simpletest\WebTestBase;
+
+/**
+ * Create a search page and test a clone.
+ *
+ * @group entity_clone
+ */
+class EntityCloneSearchPageTest extends WebTestBase {
+
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = ['entity_clone', 'search', 'node'];
+
+  /**
+   * Permissions to grant admin user.
+   *
+   * @var array
+   */
+  protected $permissions = [
+    'administer search',
+    'clone search_page entity'
+  ];
+
+  /**
+   * An administrative user with permission to configure search pages settings.
+   *
+   * @var \Drupal\user\UserInterface
+   */
+  protected $adminUser;
+
+  /**
+   * Sets the test up.
+   */
+  protected function setUp() {
+    parent::setUp();
+
+    $this->adminUser = $this->drupalCreateUser($this->permissions);
+    $this->drupalLogin($this->adminUser);
+  }
+
+  public function testSearchPageEntityClone() {
+    $edit = [
+      'label' => 'Test search page for clone',
+      'id' => 'test_search_page_for_clone',
+      'path' => 'test_search_page_for_clone_url',
+    ];
+    $this->drupalPostForm("/admin/config/search/pages/add/node_search", $edit, t('Save'));
+
+    $search_pages = \Drupal::entityTypeManager()
+      ->getStorage('search_page')
+      ->loadByProperties([
+        'id' => $edit['id'],
+      ]);
+    $search_page = reset($search_pages);
+
+    $edit = [
+      'id' => 'test_search_page_cloned',
+      'label' => 'Test search page cloned',
+    ];
+    $this->drupalPostForm('entity_clone/search_page/' . $search_page->id(), $edit, t('Clone'));
+
+    $search_pages = \Drupal::entityTypeManager()
+      ->getStorage('search_page')
+      ->loadByProperties([
+        'id' => $edit['id'],
+      ]);
+    $search_page = reset($search_pages);
+    $this->assertTrue($search_page, 'Test search page cloned found in database.');
+  }
+
+}
+
diff --git a/web/modules/entity_clone/src/Tests/EntityCloneShortcutSetTest.php b/web/modules/entity_clone/src/Tests/EntityCloneShortcutSetTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..46c8c0e4a2ed23a55dcb5073b217a1b13cc79ccd
--- /dev/null
+++ b/web/modules/entity_clone/src/Tests/EntityCloneShortcutSetTest.php
@@ -0,0 +1,69 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\entity_clone\Tests\EntityCloneShortcutSetTest.
+ */
+
+namespace Drupal\entity_clone\Tests;
+
+use Drupal\simpletest\WebTestBase;
+
+/**
+ * Create a shortcut set and test a clone.
+ *
+ * @group entity_clone
+ */
+class EntityCloneShortcutSetTest extends WebTestBase {
+
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = ['entity_clone', 'shortcut'];
+
+  /**
+   * Permissions to grant admin user.
+   *
+   * @var array
+   */
+  protected $permissions = [
+    'clone shortcut_set entity'
+  ];
+
+  /**
+   * An administrative user with permission to configure shortcuts settings.
+   *
+   * @var \Drupal\user\UserInterface
+   */
+  protected $adminUser;
+
+  /**
+   * Sets the test up.
+   */
+  protected function setUp() {
+    parent::setUp();
+
+    $this->adminUser = $this->drupalCreateUser($this->permissions);
+    $this->drupalLogin($this->adminUser);
+  }
+
+  public function testShortcutSetEntityClone() {
+    $edit = [
+      'id' => 'test_shortcut_set_cloned',
+      'label' => 'Test shortcut set cloned',
+    ];
+    $this->drupalPostForm('entity_clone/shortcut_set/default', $edit, t('Clone'));
+
+    $shortcut_sets = \Drupal::entityTypeManager()
+      ->getStorage('shortcut_set')
+      ->loadByProperties([
+        'id' => $edit['id'],
+      ]);
+    $shortcut_set = reset($shortcut_sets);
+    $this->assertTrue($shortcut_set, 'Test default shortcut set cloned found in database.');
+  }
+
+}
+
diff --git a/web/modules/entity_clone/src/Tests/EntityCloneUserTest.php b/web/modules/entity_clone/src/Tests/EntityCloneUserTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..1de2d157d32571d5aef9987ebddea8a5361eeef5
--- /dev/null
+++ b/web/modules/entity_clone/src/Tests/EntityCloneUserTest.php
@@ -0,0 +1,65 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\entity_clone\Tests\EntityCloneUserTest.
+ */
+
+namespace Drupal\entity_clone\Tests;
+
+use Drupal\simpletest\WebTestBase;
+
+/**
+ * Create a user and test a clone.
+ *
+ * @group entity_clone
+ */
+class EntityCloneUserTest extends WebTestBase {
+
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = ['entity_clone', 'user'];
+
+  /**
+   * Permissions to grant admin user.
+   *
+   * @var array
+   */
+  protected $permissions = [
+    'clone user entity'
+  ];
+
+  /**
+   * An administrative user with permission to configure users settings.
+   *
+   * @var \Drupal\user\UserInterface
+   */
+  protected $adminUser;
+
+  /**
+   * Sets the test up.
+   */
+  protected function setUp() {
+    parent::setUp();
+
+    $this->adminUser = $this->drupalCreateUser($this->permissions, 'test_user');
+    $this->drupalLogin($this->adminUser);
+  }
+
+  public function testUserEntityClone() {
+    $this->drupalPostForm('entity_clone/user/' . $this->adminUser->id(), [], t('Clone'));
+
+    $users = \Drupal::entityTypeManager()
+      ->getStorage('user')
+      ->loadByProperties([
+        'name' => 'test_user_cloned',
+      ]);
+    $user = reset($users);
+    $this->assertTrue($user, 'Test user cloned found in database.');
+  }
+
+}
+
diff --git a/web/modules/entity_clone/src/Tests/EntityCloneViewTest.php b/web/modules/entity_clone/src/Tests/EntityCloneViewTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..900ad05c8882dbc44d338479315b2c830d6ee6a3
--- /dev/null
+++ b/web/modules/entity_clone/src/Tests/EntityCloneViewTest.php
@@ -0,0 +1,69 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\entity_clone\Tests\EntityCloneViewTest.
+ */
+
+namespace Drupal\entity_clone\Tests;
+
+use Drupal\simpletest\WebTestBase;
+
+/**
+ * Create a view and test a clone.
+ *
+ * @group entity_clone
+ */
+class EntityCloneViewTest extends WebTestBase {
+
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = ['entity_clone', 'views'];
+
+  /**
+   * Permissions to grant admin user.
+   *
+   * @var array
+   */
+  protected $permissions = [
+    'clone view entity'
+  ];
+
+  /**
+   * An administrative user with permission to configure views settings.
+   *
+   * @var \Drupal\user\UserInterface
+   */
+  protected $adminUser;
+
+  /**
+   * Sets the test up.
+   */
+  protected function setUp() {
+    parent::setUp();
+
+    $this->adminUser = $this->drupalCreateUser($this->permissions);
+    $this->drupalLogin($this->adminUser);
+  }
+
+  public function testViewEntityClone() {
+    $edit = [
+      'id' => 'test_view_cloned',
+      'label' => 'Test view cloned',
+    ];
+    $this->drupalPostForm('entity_clone/view/who_s_new', $edit, t('Clone'));
+
+    $views = \Drupal::entityTypeManager()
+      ->getStorage('view')
+      ->loadByProperties([
+        'id' => $edit['id'],
+      ]);
+    $view = reset($views);
+    $this->assertTrue($view, 'Test default view cloned found in database.');
+  }
+
+}
+
diff --git a/web/modules/mathjax/LICENSE.txt b/web/modules/mathjax/LICENSE.txt
new file mode 100644
index 0000000000000000000000000000000000000000..d159169d1050894d3ea3b98e1c965c4058208fe1
--- /dev/null
+++ b/web/modules/mathjax/LICENSE.txt
@@ -0,0 +1,339 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                            NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
diff --git a/web/modules/mathjax/README.txt b/web/modules/mathjax/README.txt
new file mode 100644
index 0000000000000000000000000000000000000000..ecb6caae341540400fe2da2b2767193fcafc5a80
--- /dev/null
+++ b/web/modules/mathjax/README.txt
@@ -0,0 +1,65 @@
+This module integrates the MathJax library into your Drupal site. MathJax is the
+modern JavaScript-based LaTeX rendering solution for the Internet.
+
+By default, MathJax source is loaded automatically from the Internet using the 
+MathJax Content Delivery Network (CDN).
+
+There are two MathJax configuration options: Text format (recommended), or 
+Custom.
+
+If you select "Text format", MathJax will be available as a text filter.
+Mathematics inside the default delimiters will be rendered by MathJax. The
+default math delimiters are $$...$$ and \[...\] for displayed mathematics, and
+$...$ and \(...\) for in-line mathematics. You must add the MathJax filter to a 
+text format and put MathJax at the bottom of the filter processing order.
+
+You may select "Custom" if you need a more specific configuration. "Custom" is
+the default when upgrading.
+
+INSTALLATION
+============
+
+Using the MathJax CDN (recommended)
+-------------------------------
+
+1. Install and enable this module.
+
+2. Add the MathJax filter to an existing or new text format under 
+   Administration >> Configuration >> Text Formats. Put the MathJax filter at
+   the bottom of the "Filter processing order".
+
+3. Test it by adding a LaTeX formula between '$' in any node body (for example: 
+   $2 + 2 = 4$). Select the body text format you configured on the Text Formats
+   administration screen.
+
+
+Using a local copy of MathJax
+-----------------------------
+
+1. Install and enable this module.
+
+2. Install the third-party MathJax software:
+     Download MathJax source from the MathJax website.
+     Un-archive it into your "libraries" directory.
+     You may need to create the "libraries" directory first.
+     Rename it to "MathJax". When finished you should have this structure:
+     `/libraries/MathJax/MathJax.js`
+
+3. Follow from step #2 above.
+
+ORIGINAL AUTHOR
+===============
+Module written by Thomas Julou.
+http://drupal.org/user/273952
+
+MAINTAINER(S)
+=============
+2013: Chris McCafferty (cilefen) https://drupal.org/u/cilefen
+2014: P. Magunia (pmagunia) https://www.drupal.org/u/pmagunia
+
+LEGAL
+=====
+MathJax CDN services are provided subject to its Terms of Service (TOS). By
+accessing and using the MathJax CDN, you accept and agree to be bound by the
+terms and provisions of the TOS:
+https://www.mathjax.org/mathjax-cdn-terms-of-service/
diff --git a/web/modules/mathjax/config/install/mathjax.settings.yml b/web/modules/mathjax/config/install/mathjax.settings.yml
new file mode 100644
index 0000000000000000000000000000000000000000..c2b8b0c14bb15e6952d0d8de41adb237754dfa32
--- /dev/null
+++ b/web/modules/mathjax/config/install/mathjax.settings.yml
@@ -0,0 +1,4 @@
+use_cdn: 1
+cdn_url: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
+config_type: 0
+default_config_string: '{"tex2jax":{"inlineMath":[["$","$"],["\\(","\\)"]],"processEscapes":"true"},"showProcessingMessages":"false","messageStyle":"none"}'
diff --git a/web/modules/mathjax/config/schema/mathjax.schema.yml b/web/modules/mathjax/config/schema/mathjax.schema.yml
new file mode 100644
index 0000000000000000000000000000000000000000..64633b616da17e740d5e97dc14103429b34c2df2
--- /dev/null
+++ b/web/modules/mathjax/config/schema/mathjax.schema.yml
@@ -0,0 +1,19 @@
+mathjax.settings:
+  label: 'Mathjax settings'
+  type: config_object
+  mapping:
+    use_cdn:
+      type: integer
+      label: 'Use a CDN'
+    cdn_url:
+      type: string
+      label: 'CDN URL'
+    config_type:
+      type: integer
+      label: 'Configuration type'
+    default_config_string:
+      type: string
+      label: 'Default configuration'
+    config_string:
+      type: string
+      label: 'Current configuration'
diff --git a/web/modules/mathjax/js/config.js b/web/modules/mathjax/js/config.js
new file mode 100644
index 0000000000000000000000000000000000000000..0a37c0ae0de9215f599d9cd7f831a3bff7110332
--- /dev/null
+++ b/web/modules/mathjax/js/config.js
@@ -0,0 +1,13 @@
+/**
+ * @file
+ * Javascript behaviors for MathJax.
+ */
+
+/* global window, drupalSettings */
+
+(function (window, settings) {
+
+  'use strict';
+  window.MathJax = settings.mathjax.config;
+
+}(window, drupalSettings));
diff --git a/web/modules/mathjax/js/setup.js b/web/modules/mathjax/js/setup.js
new file mode 100644
index 0000000000000000000000000000000000000000..374ec1b187a8364e868348468cc29bb66c558c08
--- /dev/null
+++ b/web/modules/mathjax/js/setup.js
@@ -0,0 +1,26 @@
+/**
+ * @file
+ * Javascript behaviors for MathJax.
+ */
+
+/* global MathJax, Drupal, jQuery, document */
+
+(function ($, Drupal, document, MathJax) {
+
+  'use strict';
+
+  /**
+   * Attaches behaviors for MathJax.
+   */
+  Drupal.behaviors.mathjax = {
+    attach: function (context, settings) {
+      $(document).ajaxComplete(function () {
+        MathJax.Hub.Queue(['Typeset', MathJax.Hub]);
+      });
+      if (settings.mathjax.config_type === 0) {
+        $('body').addClass('tex2jax_ignore');
+      }
+    }
+  };
+
+}(jQuery, Drupal, document, MathJax));
diff --git a/web/modules/mathjax/mathjax.info.yml b/web/modules/mathjax/mathjax.info.yml
new file mode 100644
index 0000000000000000000000000000000000000000..6cc2be7adb4730caa02919024f845f2d757a9c17
--- /dev/null
+++ b/web/modules/mathjax/mathjax.info.yml
@@ -0,0 +1,15 @@
+name: MathJax
+type: module
+description: Javascript-based LaTeX rendering solution for your Drupal website.
+# core: 8.x
+configure: mathjax.settings
+libraries:
+  - mathjax/setup
+  - mathjax/source
+  - mathjax/config
+
+# Information added by Drupal.org packaging script on 2017-04-14
+version: '8.x-2.7'
+core: '8.x'
+project: 'mathjax'
+datestamp: 1492196649
diff --git a/web/modules/mathjax/mathjax.install b/web/modules/mathjax/mathjax.install
new file mode 100644
index 0000000000000000000000000000000000000000..3aff70a3f318fd82a588744c46fd0fc8821228a8
--- /dev/null
+++ b/web/modules/mathjax/mathjax.install
@@ -0,0 +1,54 @@
+<?php
+/**
+ * @file
+ * MathJax module install.
+ */
+
+/**
+ * Implements hook_requirements().
+ */
+function mathjax_requirements($phase) {
+  $requirements = array();
+
+  if ($phase == 'runtime') {
+    $config = Drupal::config('mathjax.settings');
+    if (!$config->get('use_cdn')) {
+      if (!_mathjax_library_present()) {
+        $requirements['mathjax_local_libraries'] = array(
+          'title' => t('MathJax'),
+          'value' => t('Missing JavaScript libraries'),
+          'description' => t("MathJax is configured to use local library files but they could not be found. See the README."),
+          'severity' => REQUIREMENT_ERROR,
+        );
+      }
+    }
+  }
+
+  return $requirements;
+}
+
+/**
+ * Determines whether the MathJax sources are present.
+ *
+ * @return bool
+ *   True if MathJax is installed
+ */
+function _mathjax_library_present() {
+  $path = Drupal::root() . '/libraries/MathJax/MathJax.js';
+  return file_exists($path);
+}
+
+/**
+ * Update the CDN URL.
+ */
+function mathjax_update_8201() {
+    $config_factory = \Drupal::configFactory();
+    $config = $config_factory->getEditable('mathjax.settings');
+    $url = $config->get('cdn_url');
+    $new = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js';
+    $old = 'https://cdn.mathjax.org/mathjax/latest/MathJax.js';
+    if (strpos($url, $old) !== FALSE) {
+        $url = str_replace($old, $new, $url);
+        $config->set('cdn_url', $url)->save(TRUE);
+    }
+}
diff --git a/web/modules/mathjax/mathjax.libraries.yml b/web/modules/mathjax/mathjax.libraries.yml
new file mode 100644
index 0000000000000000000000000000000000000000..403df60608ac2bfe1e4249efdc99041ee7846b9f
--- /dev/null
+++ b/web/modules/mathjax/mathjax.libraries.yml
@@ -0,0 +1,12 @@
+config:
+  version: VERSION
+  js:
+    js/config.js: {}
+setup:
+  version: VERSION
+  js:
+    js/setup.js: {}
+  dependencies:
+    - core/jquery
+    - core/drupal
+    - mathjax/source
diff --git a/web/modules/mathjax/mathjax.links.menu.yml b/web/modules/mathjax/mathjax.links.menu.yml
new file mode 100644
index 0000000000000000000000000000000000000000..475b589408a04e3db0a7edf5ac4c6219b51fd99c
--- /dev/null
+++ b/web/modules/mathjax/mathjax.links.menu.yml
@@ -0,0 +1,5 @@
+mathjax.settings:
+  title: MathJax
+  description: 'Configure global settings for MathJax.'
+  parent: system.admin_config_content
+  route_name: mathjax.settings
diff --git a/web/modules/mathjax/mathjax.module b/web/modules/mathjax/mathjax.module
new file mode 100644
index 0000000000000000000000000000000000000000..1f3f320c58d855f3b95a39c80fd61a19fd865fcd
--- /dev/null
+++ b/web/modules/mathjax/mathjax.module
@@ -0,0 +1,74 @@
+<?php
+
+/**
+ * @file
+ * MathJax module.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function mathjax_help($route_name, RouteMatchInterface $route_match) {
+  switch ($route_name) {
+    case 'mathjax.settings':
+      return t('MathJax allows you to include mathematics in your web pages, either using TeX and LaTeX notation, or as MathML, and you can even use both in the same document. Go to the <a href=":url">MathJax website</a> for more information.', [':url' => 'http://www.mathjax.org/']);
+
+    case 'help.page.mathjax':
+      return '<p>' . t('MathJax allows you to include mathematics in your web pages, either using TeX and LaTeX notation, or as MathML, and you can even use both in the same document. Go to the <a href=":url">MathJax website</a> for more information.', [':url' => 'http://www.mathjax.org/']) . '</p>';
+  }
+}
+
+/**
+ * Implements hook_page_attachments().
+ */
+function mathjax_page_attachments(&$page) {
+  $config = Drupal::config('mathjax.settings');
+  $config_type = $config->get('config_type');
+  if ($config_type == 1) {
+    $page['#attached']['drupalSettings']['mathjax'] = [
+      'config_type' => $config_type,
+      'config' => json_decode($config->get('config_string')),
+    ];
+    $page['#attached']['library'][] = 'mathjax/config';
+    $page['#attached']['library'][] = 'mathjax/source';
+    $page['#attached']['library'][] = 'mathjax/setup';
+  }
+}
+
+/**
+ * Implements hook_library_info_build().
+ */
+function mathjax_library_info_build() {
+  $config = Drupal::config('mathjax.settings');
+  $libraries = [];
+  $libraries['source'] = [
+    'dependencies' => [
+      'mathjax/config',
+    ],
+    'remote' => 'https://www.mathjax.org/',
+    'license' => [
+      'name' => 'Apache',
+      'url' => 'http://cdn.mathjax.org/mathjax/2.0-latest/LICENSE',
+      'gpl-compatible' => TRUE,
+    ],
+  ];
+  if ($config->get('use_cdn') == FALSE) {
+    $libraries['source']['js'] = [
+      \Drupal::request()->getBaseUrl() . '/libraries/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML' => [
+        'type' => 'external',
+        'minified' => TRUE,
+      ],
+    ];
+  }
+  else {
+    $libraries['source']['js'] = [
+      $config->get('cdn_url') => [
+        'type' => 'external',
+        'minified' => TRUE,
+      ],
+    ];
+  }
+  return $libraries;
+}
diff --git a/web/modules/mathjax/mathjax.permissions.yml b/web/modules/mathjax/mathjax.permissions.yml
new file mode 100644
index 0000000000000000000000000000000000000000..65d7e245caed1e78af953a155e7e2f36e112aacd
--- /dev/null
+++ b/web/modules/mathjax/mathjax.permissions.yml
@@ -0,0 +1,3 @@
+administer mathjax:
+  title: 'Administer MathJax'
+  restrict access: TRUE
diff --git a/web/modules/mathjax/mathjax.routing.yml b/web/modules/mathjax/mathjax.routing.yml
new file mode 100644
index 0000000000000000000000000000000000000000..e55598d31db1183a571376e94ce5f3a892f37092
--- /dev/null
+++ b/web/modules/mathjax/mathjax.routing.yml
@@ -0,0 +1,7 @@
+mathjax.settings:
+  path: '/admin/config/content/mathjax'
+  defaults:
+    _title: 'MathJax'
+    _form: '\Drupal\mathjax\Form\MathjaxSettingsForm'
+  requirements:
+    _permission: 'administer mathjax'
diff --git a/web/modules/mathjax/src/Form/MathjaxSettingsForm.php b/web/modules/mathjax/src/Form/MathjaxSettingsForm.php
new file mode 100644
index 0000000000000000000000000000000000000000..544cf14ad6b8fbcc2c9d5e5997a73c55f2774ad7
--- /dev/null
+++ b/web/modules/mathjax/src/Form/MathjaxSettingsForm.php
@@ -0,0 +1,132 @@
+<?php
+
+namespace Drupal\mathjax\Form;
+
+use Drupal\Core\Form\ConfigFormBase;
+use Drupal\Core\Form\FormStateInterface;
+use Drupal\Core\Url;
+
+/**
+ * Presents the module settings form.
+ */
+class MathjaxSettingsForm extends ConfigFormBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getFormId() {
+    return 'mathjax_admin_settings';
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function getEditableConfigNames() {
+    return ['mathjax.settings'];
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function buildForm(array $form, FormStateInterface $form_state) {
+    $config = $this->config('mathjax.settings');
+
+    $form['test'] = array(
+      '#type' => 'fieldset',
+      '#title' => 'MathJax Test',
+    );
+    $form['test']['library'] = array(
+      '#type' => 'item',
+      '#markup' => '<div class="tex2jax_process"><p>If the MathJax library is installed properly, you should see the square root of x here: $ \sqrt{x} $ and the square root of y here: \(\sqrt{y}\)</p><p>$$\text{The quadratic formula should appear here: } x = \frac {-b \pm \sqrt {b^2 - 4ac}}{2a}$$</p><p>\[\text{The cubic equation should appear here: } a x^3\; +\; b x^2\; +\; c x\; +\; d\; =\; 0\]</p></div>',
+    );
+
+    $form['use_cdn'] = array(
+      '#type' => 'checkbox',
+      '#title' => $this->t('Use MathJax Content Delivery Network (CDN)'),
+      '#default_value' => $config->get('use_cdn'),
+      '#description' => t('Check this box to load MathJax source from MathJax servers (recommended) or from the link you can provide below. If you do not check this box, see the README about configuring a local MathJax source. <em>MathJax CDN services are provided subject to its <a href=":url">Terms of Service</a> (TOS). By accessing and using the MathJax CDN, you accept and agree to be bound by the terms and provisions of the TOS</em>.', [':url' => 'https://www.mathjax.org/mathjax-cdn-terms-of-service/']),
+    );
+    $form['cdn_url'] = array(
+      '#type' => 'textfield',
+      '#title' => $this->t('MathJax CDN URL'),
+      '#default_value' => $config->get('cdn_url'),
+      '#description' => $this->t("Enter the Mathjax CDN url here or leave it unchanged to use the one provided by <a target='_blank' href=':url'>www.mathjax.org</a>.", array(':url' => 'http://www.mathjax.org')),
+      '#states' => array(
+        'invisible' => array(
+          ':input[name="use_cdn"]' => array('checked' => FALSE),
+        ),
+      ),
+    );
+    $form['config_type'] = array(
+      '#type' => 'radios',
+      '#title' => $this->t('Configuration Type'),
+      '#options' => array(
+        0 => $this->t('Text Format (Recommended&mdash;Add the MathJax filter to a <a href=":textformats">text format</a>.)', array(':textformats' => Url::fromRoute('filter.admin_overview')->toString())),
+        1 => $this->t('Custom'),
+      ),
+      '#default_value' => $config->get('config_type'),
+    );
+    $form['mathjax_note_default'] = array(
+      '#type' => 'item',
+      '#prefix' => '<span class="tex2jax_ignore">',
+      '#markup' => $this->t('MathJax
+      will be available as a text filter. Mathematics inside the
+      default delimiters will be rendered by MathJax. The
+      default math delimiters are $$...$$ and \[...\] for displayed mathematics,
+      and $...$ and \(...\) for in-line mathematics. <strong>You must add
+      the MathJax filter to a <a href=":textformats">text format</a> and put
+      MathJax at the bottom of the filter processing order.</strong>', array(':textformats' => Url::fromRoute('filter.admin_overview')->toString())),
+      '#suffix' => '</span>',
+      '#states' => array(
+        'invisible' => array(
+          ':input[name="config_type"]' => array('value' => 1),
+        ),
+      ),
+    );
+    $form['config_string'] = array(
+      '#type' => 'textarea',
+      '#title' => $this->t('Custom configuration'),
+      '#default_value' => ($config->get('config_string')) ? $config->get('config_string') : $config->get('default_config_string'),
+      '#description' => $this->t("Enter a JSON configuration string as documented on  <a target='_blank' href=':mathjax-help'>MathJax help</a>. Use with caution as you may introduce JavaScript errors.", array(':mathjax-help' => 'http://docs.mathjax.org/en/latest/')),
+      '#states' => array(
+        'invisible' => array(
+          ':input[name="config_type"]' => array('value' => 0),
+        ),
+      ),
+    );
+    $config_type = $config->get('config_type');
+    if ($config_type == 0) {
+      $config_string = $config->get('default_config_string');
+    }
+    else {
+      $config_string = $config->get('config_string');
+    }
+    $form['#attached'] = [
+      'library' => [
+        'mathjax/source',
+      ],
+      'drupalSettings' => [
+        'mathjax' => [
+          'config_type' => $config_type,
+          'config' => json_decode($config_string),
+        ],
+      ],
+    ];
+    return parent::buildForm($form, $form_state);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function submitForm(array &$form, FormStateInterface $form_state) {
+    $this->config('mathjax.settings')
+        ->set('use_cdn', $form_state->getValue('use_cdn'))
+        ->set('cdn_url', $form_state->getValue('cdn_url'))
+        ->set('config_type', $form_state->getValue('config_type'))
+        ->set('config_string', $form_state->getValue('config_string'))
+        ->save();
+    drupal_flush_all_caches();
+    parent::submitForm($form, $form_state);
+  }
+
+}
diff --git a/web/modules/mathjax/src/Plugin/Filter/MathjaxFilter.php b/web/modules/mathjax/src/Plugin/Filter/MathjaxFilter.php
new file mode 100644
index 0000000000000000000000000000000000000000..31b8c28ee8608c754632fe7bd1728be639d1a1fd
--- /dev/null
+++ b/web/modules/mathjax/src/Plugin/Filter/MathjaxFilter.php
@@ -0,0 +1,62 @@
+<?php
+
+namespace Drupal\mathjax\Plugin\Filter;
+
+use Drupal\filter\Plugin\FilterBase;
+use Drupal\filter\FilterProcessResult;
+use Drupal\Core\Url;
+
+/**
+ * Provides a filter to format text with Mathjax.
+ *
+ * Wraps the text in a div with a class name that is looked-for
+ * by the Mathjax Javascript library.
+ *
+ * @Filter(
+ *   id = "filter_mathjax",
+ *   module = "mathjax",
+ *   title = @Translation("MathJax"),
+ *   description = @Translation("Mathematics inside the configured delimiters is rendered by MathJax."),
+ *   type = Drupal\filter\Plugin\FilterInterface::TYPE_MARKUP_LANGUAGE,
+ *   weight = 50
+ * )
+ */
+class MathjaxFilter extends FilterBase {
+  /**
+   * {@inheritdoc}
+   */
+  public function process($text, $langcode) {
+    $wrapped = strip_tags($text) !== 'TEST' ? '<div class="tex2jax_process">' . $text . '</div>' : $text;
+    $result = new FilterProcessResult($wrapped);
+    $config = \Drupal::config('mathjax.settings');
+    $config_type = $config->get('config_type');
+    if ($config_type == 0) {
+      $result->setAttachments([
+        'library' => [
+          'mathjax/config',
+          'mathjax/source',
+          'mathjax/setup',
+        ],
+        'drupalSettings' => [
+          'mathjax' => [
+            'config_type' => $config_type,
+            'config' => json_decode($config->get('default_config_string')),
+          ],
+        ],
+      ]);
+    }
+    return $result;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function tips($long = FALSE) {
+    return $this->t('<span class="tex2jax_ignore">Mathematics inside the <a href=":url">configured delimiters</a> is
+      rendered by MathJax. The default math delimiters are $$...$$ and \[...\] for
+      displayed mathematics, and $...$ and \(...\) for in-line mathematics.</span>',
+        array(':url' => Url::fromRoute('mathjax.settings')->toString())
+    );
+  }
+
+}
diff --git a/web/modules/mathjax/src/Tests/MathjaxWebTest.php b/web/modules/mathjax/src/Tests/MathjaxWebTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..c01c98f1df52be62577a1babd84d1c0b4ace7deb
--- /dev/null
+++ b/web/modules/mathjax/src/Tests/MathjaxWebTest.php
@@ -0,0 +1,117 @@
+<?php
+
+namespace Drupal\mathjax\Tests;
+
+use Drupal\simpletest\WebTestBase;
+use Drupal;
+
+/**
+ * Configuration test case for the module.
+ *
+ * @group MathJax
+ */
+class MathjaxWebTest extends WebTestBase {
+
+  /**
+   * An administrator.
+   *
+   * @var Drupal\user\UserInterface
+   */
+  protected $administrator;
+
+  /**
+   * Provide info on these tests to the admin interface.
+   */
+  public static function getInfo() {
+    return array(
+      'name' => 'MathJax tests',
+      'description' => 'Tests the default configuration and admin functions.',
+      'group' => 'MathJax',
+    );
+  }
+
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = array('mathjax', 'filter');
+
+  /**
+   * Set up the test evironment.
+   */
+  protected function setUp() {
+    parent::setUp();
+
+    $this->administrator = $this->drupalCreateUser(array(
+      'administer mathjax',
+      'administer filters',
+      'access site reports',
+      'access administration pages',
+      'administer site configuration',
+    ));
+  }
+
+  /**
+   * Test the administration functions.
+   */
+  public function testAdmin() {
+    $config = Drupal::config('mathjax.settings');
+    $this->drupalLogin($this->administrator);
+    $this->drupalGet('admin/config');
+    $this->assertText('Configure global settings for MathJax.');
+    $this->drupalGet('admin/config/content/formats/add');
+    $this->assertText('Mathematics inside the configured delimiters is rendered by MathJax');
+    $this->drupalGet('admin/config/content/mathjax');
+    $this->assertTitle('MathJax | Drupal', 'Page title set.');
+    $this->assertText('MathJax CDN URL');
+    $this->assertFieldByName('cdn_url', $config->get('cdn_url'), 'Default CDN config string found.');
+    $this->assertText('Enter the Mathjax CDN url here or leave it unchanged to use the one provided by www.mathjax.org.');
+    $this->assertText('Configuration Type');
+    $this->assertFieldByName('config_type', 0);
+
+    $custom = '{"tex2jax":{"inlineMath":[["#","#"],["\\(","\\)"]],"processEscapes":"true"},"showProcessingMessages":"false","messageStyle":"none"}';
+    $path = 'admin/config/content/mathjax';
+    $edit = array(
+      'config_type' => 1,
+      'config_string' => $custom,
+    );
+
+    $this->drupalPostForm($path, $edit, t('Save configuration'));
+    $this->assertText('Enter a JSON configuration string as documented');
+    $this->assertRaw(htmlentities($custom), 'Custom configuration string found.');
+  }
+
+  /**
+   * Tests the detection of MathJax libraries.
+   */
+  public function testLibraryDetection() {
+    $this->drupalLogin($this->administrator);
+    $this->drupalGet('admin/reports/status');
+    $this->assertNoText('MathJax is configured to use local library files but they could not be found. See the README.');
+    $this->drupalGet('admin/config/content/mathjax');
+    $edit = array(
+      'use_cdn' => FALSE,
+    );
+    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    $this->drupalGet('admin/reports/status');
+    $this->assertText('MathJax is configured to use local library files but they could not be found. See the README.');
+  }
+
+  /**
+   * Ensure the MathJax filter is at the bottom of the processing order.
+   */
+  public function testFilterOrder() {
+    $this->drupalLogin($this->administrator);
+    // Activate the MathJax filter on the plain_text format.
+    $this->drupalGet('admin/config/content/formats/manage/plain_text');
+    $edit = array('filters[filter_mathjax][status]' => TRUE);
+    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    $this->drupalGet('admin/config/content/formats/manage/plain_text');
+    // Ensure that MathJax appears at the bottom of the active filter list.
+    $count = count($this->xpath("//div[@id='edit-filters-status']/div/input[@class='form-checkbox' and @checked='checked']"));
+    $result = $this->xpath("//table[@id='filter-order']/tbody/tr[$count]/td[1]");
+    $this->assertEqual($result[0]->__toString(), 'MathJax');
+  }
+
+}
diff --git a/web/modules/twitter_block/LICENSE.txt b/web/modules/twitter_block/LICENSE.txt
new file mode 100644
index 0000000000000000000000000000000000000000..d159169d1050894d3ea3b98e1c965c4058208fe1
--- /dev/null
+++ b/web/modules/twitter_block/LICENSE.txt
@@ -0,0 +1,339 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                            NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
diff --git a/web/modules/twitter_block/README.txt b/web/modules/twitter_block/README.txt
new file mode 100644
index 0000000000000000000000000000000000000000..e32c2e90952ab5cbd369082c7d9a1965dca244c0
--- /dev/null
+++ b/web/modules/twitter_block/README.txt
@@ -0,0 +1,78 @@
+CONTENTS OF THIS FILE
+---------------------
+
+ * Introduction
+ * Requirements
+ * Installation
+ * Permissions
+ * Usage
+ * Theming
+
+INTRODUCTION
+------------
+
+Current Maintainers:
+
+ * ZenDoodles http://drupal.org/user/226976
+ * cweagans http://drupal.org/user/404732
+ * Devin Carlson http://drupal.org/user/290182
+ * Naveen Valecha http://drupal.org/user/2665733
+
+Twitter Block is a lightweight module which allows administrators to create
+blocks which display embedded timelines.
+
+Twitter Block will never provide advanced Twitter integration such as OAuth
+user authentication or the ability to tweet from Drupal. These capabilities are
+provided by other modules such as Twitter (http://drupal.org/project/twitter).
+
+REQUIREMENTS
+------------
+
+Twitter Block has one dependency.
+
+Drupal core modules
+ * Block
+
+INSTALLATION
+------------
+
+Twitter Block can be installed via the standard Drupal installation process
+(http://drupal.org/documentation/install/modules-themes/modules-8).
+
+PERMISSIONS
+------------
+
+The ability to create, edit and delete Twitter Block blocks relies on the block
+module's "Administer blocks" permission.
+
+USAGE
+-----
+
+Administrators can visit the Blocks administration page where they can create
+new Twitter Block blocks and update or delete existing Twitter Block blocks.
+
+Administrators can also position Twitter Block blocks as they can with standard
+or custom blocks provided by the core Block module.
+
+Each Twitter Block block requires a unique widget ID which determines, among
+other things, the source (user timeline, favourites, list or search) of the
+tweets to display.
+
+You can view a list of your existing embedded timeline widgets (and their
+widget IDs) or create new embedded timeline widgets by visiting
+https://twitter.com/settings/widgets (make sure that you're logged in).
+
+You can determine a widget's ID by editing it and inspecting the URL (which
+should be in the form of https://twitter.com/settings/widgets/WIDGET_ID/edit)
+or by looking at the widget's embed code (look for
+data-widget-id="WIDGET_ID").
+
+Theming
+-------
+
+Embedded Timelines offer a number of customization options such as theme, layout
+and border color but, due to the way embedded timelines are implemented, custom
+theming using CSS can be difficult.
+
+To add custom CSS to embedded timelines check out the
+(http://github.com/kevinburke/customize-twitter-1.1) Customize Twitter project.
diff --git a/web/modules/twitter_block/composer.json b/web/modules/twitter_block/composer.json
new file mode 100644
index 0000000000000000000000000000000000000000..d2b768938396dc573905af3b0d79c61c9652cc98
--- /dev/null
+++ b/web/modules/twitter_block/composer.json
@@ -0,0 +1,7 @@
+{
+  "name": "drupal/twitter_block",
+  "type": "drupal-module",
+  "description": "Provides configurable blocks for a Twitter feed.",
+  "homepage": "http://drupal.org/project/twitter_block",
+  "license": "GPL-2.0+"
+}
diff --git a/web/modules/twitter_block/config/schema/twitter_block.schema.yml b/web/modules/twitter_block/config/schema/twitter_block.schema.yml
new file mode 100644
index 0000000000000000000000000000000000000000..f078bd389fdb0bf350455341e17ee36d3cff671f
--- /dev/null
+++ b/web/modules/twitter_block/config/schema/twitter_block.schema.yml
@@ -0,0 +1,56 @@
+block.settings.twitter_block:
+  type: block_settings
+  label: 'Twitter block settings'
+  mapping:
+    username:
+      type: string
+      label: 'Username'
+    theme:
+      type: string
+      label: 'Theme'
+    link_color:
+      type: string
+      label: 'Link Color'
+    width:
+      type: string
+      label: 'Width'
+    height:
+      type: string
+      label: 'Height'
+    chrome:
+      type: mapping
+      label: 'Chrome'
+      mapping:
+        noheader:
+          type: string
+          label: 'Chrome Option'
+        nofooter:
+          type: string
+          label: 'Chrome Option'
+        noborders:
+          type: string
+          label: 'Chrome Option'
+        noscrollbar:
+          type: string
+          label: 'Chrome Option'
+        transparent:
+          type: string
+          label: 'Chrome Option'
+    border_color:
+      type: string
+      label: 'Border Color'
+    language:
+      type: string
+      label: 'Language'
+    tweet_limit:
+      type: string
+      label: 'Tweet Limit'
+    related:
+      type: string
+      label: 'Related'
+    polite:
+      type: string
+      label: 'Polite'
+    weight:
+      type: integer
+      label: 'Weight'
diff --git a/web/modules/twitter_block/src/Plugin/Block/TwitterBlock.php b/web/modules/twitter_block/src/Plugin/Block/TwitterBlock.php
new file mode 100644
index 0000000000000000000000000000000000000000..b6ad5c29ef96a8aeede5b6c756b7e38119727f17
--- /dev/null
+++ b/web/modules/twitter_block/src/Plugin/Block/TwitterBlock.php
@@ -0,0 +1,269 @@
+<?php
+
+namespace Drupal\twitter_block\Plugin\Block;
+
+use Drupal\Core\Block\BlockBase;
+use Drupal\Core\Form\FormStateInterface;
+use Drupal\Core\Url;
+
+/**
+ * Defines a twitter block block type.
+ *
+ * @Block(
+ *   id = "twitter_block",
+ *   admin_label = @Translation("Twitter block"),
+ *   category = @Translation("Twitter"),
+ * )
+ */
+class TwitterBlock extends BlockBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function blockForm($form, FormStateInterface $form_state) {
+
+    $config = $this->getConfiguration();
+
+    $form['username'] = [
+      '#type' => 'textfield',
+      '#title' => $this->t('Username'),
+      '#default_value' => $config['username'],
+      '#required' => TRUE,
+      '#field_prefix' => '@',
+    ];
+    $form['appearance'] = [
+      '#type' => 'fieldset',
+      '#title' => $this->t('Appearance'),
+    ];
+    $form['appearance']['theme'] = [
+      '#type' => 'select',
+      '#title' => $this->t('Theme'),
+      '#default_value' => $config['theme'],
+      '#options' => [
+        '' => $this->t('Default'),
+        'dark' => $this->t('Dark'),
+      ],
+      '#description' => $this->t('Select a theme for the widget.'),
+    ];
+    $form['appearance']['link_color'] = [
+      '#type' => 'textfield',
+      '#title' => $this->t('Link color'),
+      '#default_value' => $config['link_color'],
+      '#maxlength' => 6,
+      '#size' => 6,
+      '#field_prefix' => '#',
+      '#description' => $this->t('Change the link color used by the widget.
+        Takes an %format hex format color. Note that some icons in the widget
+        will also appear this color.', ['%format' => 'abc123']),
+    ];
+    $form['appearance']['border_color'] = [
+      '#type' => 'textfield',
+      '#title' => $this->t('Border color'),
+      '#default_value' => $config['border_color'],
+      '#maxlength' => 6,
+      '#size' => 6,
+      '#field_prefix' => '#',
+      '#description' => $this->t('Change the border color used by the widget.
+        Takes an %format hex format color.', ['%format' => 'abc123']),
+    ];
+    $form['appearance']['chrome'] = [
+      '#type' => 'checkboxes',
+      '#title' => $this->t('Chrome'),
+      '#default_value' => $config['chrome'],
+      '#options' => [
+        'noheader' => $this->t('No header'),
+        'nofooter' => $this->t('No footer'),
+        'noborders' => $this->t('No borders'),
+        'noscrollbar' => $this->t('No scrollbar'),
+        'transparent' => $this->t('Transparent'),
+      ],
+      '#description' => $this->t('Control the widget layout and chrome.'),
+    ];
+    $form['functionality'] = [
+      '#type' => 'fieldset',
+      '#title' => $this->t('Functionality'),
+    ];
+    $form['functionality']['related'] = [
+      '#type' => 'textfield',
+      '#title' => $this->t('Related users'),
+      '#default_value' => $config['related'],
+      '#description' => $this->t('As per the Tweet and follow buttons, you may
+        provide a comma-separated list of user screen names as suggested
+        followers to a user after they reply, Retweet, or favorite a Tweet in the timeline.'),
+    ];
+    $form['functionality']['tweet_limit'] = [
+      '#type' => 'select',
+      '#title' => $this->t('Tweet limit'),
+      '#default_value' => $config['tweet_limit'],
+      '#options' => ['' => $this->t('Auto')] + [array_combine(range(1, 20), range(1, 20))],
+      '#description' => $this->t('Fix the size of a timeline to a preset number
+        of Tweets between 1 and 20. The timeline will render the specified number
+        of Tweets from the timeline, expanding the height of the widget to
+        display all Tweets without scrolling. Since the widget is of a fixed
+        size, it will not poll for updates when using this option.'),
+    ];
+    $form['size'] = [
+      '#type' => 'fieldset',
+      '#title' => $this->t('Size'),
+      '#description' => $this->t('Embedded timelines are flexible and adaptive,
+        functioning at a variety of dimensions ranging from wide to narrow,
+        and short to tall. The default dimensions for a timeline are 520×600px,
+        which can be overridden to fit the dimension requirements of your page.
+        Setting a width is not required, and by default the widget will shrink
+        to the width of its parent element in the page.'),
+    ];
+    $form['size']['width'] = [
+      '#type' => 'textfield',
+      '#title' => $this->t('Width'),
+      '#default_value' => $config['width'],
+      '#size' => 6,
+      '#field_suffix' => 'px',
+      '#description' => $this->t('Change the width of the widget.'),
+    ];
+    $form['size']['height'] = [
+      '#type' => 'textfield',
+      '#title' => $this->t('Height'),
+      '#default_value' => $config['height'],
+      '#size' => 6,
+      '#field_suffix' => 'px',
+      '#description' => $this->t('Change the height of the widget.'),
+    ];
+    $form['size']['note'] = [
+      '#type' => 'markup',
+      '#markup' => '<p>' . $this->t('The minimum width of a timeline is 180px
+        and the maximum is 520px. The minimum height is 200px.') . '</p>',
+    ];
+    $form['accessibility'] = [
+      '#type' => 'fieldset',
+      '#title' => $this->t('Accessibility'),
+    ];
+    $form['accessibility']['language'] = [
+      '#type' => 'textfield',
+      '#title' => $this->t('Language'),
+      '#default_value' => $config['language'],
+      '#maxlength' => 5,
+      '#size' => 5,
+      '#description' => $this->t('The widget language is detected from the page,
+        based on the language of your content. Enter a <a href="@website">
+        language code</a> to manually override the language.',
+        ['@website' => 'http://www.w3.org/TR/html401/struct/dirlang.html#h-8.1.1']),
+    ];
+    $form['accessibility']['polite'] = [
+      '#type' => 'select',
+      '#title' => $this->t('ARIA politeness'),
+      '#options' => [
+        'polite' => $this->t('Polite'),
+        'assertive' => $this->t('Assertive'),
+      ],
+      '#default_value' => $config['polite'],
+      '#description' => $this->t('ARIA is an accessibility system that aids people
+        using assistive technology interacting with dynamic web content.
+        <a href="@website">Read more about ARIA on W3C\'s website</a>. By
+        default, the embedded timeline uses the least obtrusive setting:
+        "polite". If you\'re using an embedded timeline as a primary source of
+        content on your page, you may wish to override this to the assertive
+        setting, using "assertive".',
+        ['@website' => 'http://www.w3.org/WAI/intro/aria.php']),
+    ];
+    return $form;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function blockSubmit($form, FormStateInterface $form_state) {
+    $this->setConfigurationValue('username', $form_state->getValue('username'));
+    foreach (['appearance', 'functionality', 'size', 'accessibility'] as $fieldset) {
+      $fieldset_values = $form_state->getValue($fieldset);
+      foreach ($fieldset_values as $key => $value) {
+        $this->setConfigurationValue($key, $value);
+      }
+    }
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function build() {
+
+    $config = $this->getConfiguration();
+
+    $render['block'] = [
+      '#type' => 'link',
+      '#title' => $this->t('Tweets by @@username', ['@username' => $config['username']]),
+      '#url' => Url::fromUri('https://twitter.com/' . $config['username']),
+      '#attributes' => [
+        'class' => ['twitter-timeline'],
+      ],
+      '#attached' => [
+        'library' => ['twitter_block/widgets'],
+      ],
+    ];
+
+    if (!empty($config['theme'])) {
+      $render['block']['#attributes']['data-theme'] = $config['theme'];
+    }
+
+    if (!empty($config['link_color'])) {
+      $render['block']['#attributes']['data-link-color'] = '#' . $config['link_color'];
+    }
+
+    if (!empty($config['width'])) {
+      $render['block']['#attributes']['data-width'] = $config['width'];
+    }
+
+    if (!empty($config['height'])) {
+      $render['block']['#attributes']['data-height'] = $config['height'];
+    }
+
+    if (!empty($config['chrome'])) {
+      $options = array_keys(array_filter($config['chrome']));
+
+      if (count($options)) {
+        $render['block']['#attributes']['data-chrome'] = implode(' ', $options);
+      }
+    }
+
+    if (!empty($config['border_color'])) {
+      $render['block']['#attributes']['data-border-color'] = '#' . $config['border_color'];
+    }
+
+    if (!empty($config['language'])) {
+      $render['block']['#attributes']['lang'] = $config['language'];
+    }
+
+    if (!empty($config['tweet_limit'])) {
+      $render['block']['#attributes']['data-tweet-limit'] = $config['tweet_limit'];
+    }
+
+    if (!empty($config['related'])) {
+      $render['block']['#attributes']['data-related'] = $config['related'];
+    }
+
+    if (!empty($config['polite'])) {
+      $render['block']['#attributes']['aria-polite'] = $config['polite'];
+    }
+
+    return $render;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function defaultConfiguration() {
+    return [
+      'username' => '',
+      'theme' => '',
+      'link_color' => '',
+      'width' => '',
+      'height' => '',
+      'chrome' => [],
+      'border_color' => '',
+      'language' => '',
+      'tweet_limit' => '',
+      'related' => '',
+      'polite' => '',
+    ];
+  }
+
+}
diff --git a/web/modules/twitter_block/src/Tests/TwitterBlockTest.php b/web/modules/twitter_block/src/Tests/TwitterBlockTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..051e144e7d07f51b5b47600b73511eb3bb4aed74
--- /dev/null
+++ b/web/modules/twitter_block/src/Tests/TwitterBlockTest.php
@@ -0,0 +1,58 @@
+<?php
+
+namespace Drupal\twitter_block\Tests;
+
+use Drupal\simpletest\WebTestBase;
+
+/**
+ * Tests if the twitter block is available.
+ *
+ * @group twitter_block
+ */
+class TwitterBlockTest extends WebTestBase {
+
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = ['system_test', 'block', 'twitter_block'];
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function setUp() {
+    parent::setUp();
+    // Create and login user.
+    $admin_user = $this->drupalCreateUser(array(
+      'administer blocks', 'administer site configuration',
+      'access administration pages',
+    ));
+    $this->drupalLogin($admin_user);
+  }
+
+  /**
+   * Test that the twitter block can be placed and works.
+   */
+  public function testTwitterBlock() {
+    // Test availability of the twitter block in the admin "Place blocks" list.
+    \Drupal::service('theme_handler')->install(['bartik', 'seven', 'stark']);
+    $theme_settings = $this->config('system.theme');
+    foreach (['bartik', 'seven', 'stark'] as $theme) {
+      $this->drupalGet('admin/structure/block/list/' . $theme);
+      // Configure and save the block.
+      $this->drupalPlaceBlock('twitter_block', array(
+        'username' => 'drupal',
+        'width' => 180,
+        'height' => 200,
+        'region' => 'content',
+        'theme' => $theme,
+      ));
+      // Set the default theme and ensure the block is placed.
+      $theme_settings->set('default', $theme)->save();
+      $this->drupalGet('');
+      $this->assertText('Tweets by @drupal', 'Twitter block found');
+    }
+  }
+
+}
diff --git a/web/modules/twitter_block/twitter_block.info.yml b/web/modules/twitter_block/twitter_block.info.yml
new file mode 100644
index 0000000000000000000000000000000000000000..575c36921734e9b28001f0017cdd0afde31275e1
--- /dev/null
+++ b/web/modules/twitter_block/twitter_block.info.yml
@@ -0,0 +1,12 @@
+name: Twitter Block
+type: module
+description: 'Provides configurable blocks for a Twitter feed.'
+# core: 8.x
+dependencies:
+  - block
+
+# Information added by Drupal.org packaging script on 2017-03-15
+version: '8.x-3.0-alpha0'
+core: '8.x'
+project: 'twitter_block'
+datestamp: 1489574287
diff --git a/web/modules/twitter_block/twitter_block.libraries.yml b/web/modules/twitter_block/twitter_block.libraries.yml
new file mode 100644
index 0000000000000000000000000000000000000000..2db93af7764c63822701ae51401c152cccf081e3
--- /dev/null
+++ b/web/modules/twitter_block/twitter_block.libraries.yml
@@ -0,0 +1,3 @@
+widgets:
+  js:
+    https://platform.twitter.com/widgets.js: { type: external }
diff --git a/web/modules/twitter_block/twitter_block.module b/web/modules/twitter_block/twitter_block.module
new file mode 100644
index 0000000000000000000000000000000000000000..071a51369d31f1250fc9db7578110c5aed091f0e
--- /dev/null
+++ b/web/modules/twitter_block/twitter_block.module
@@ -0,0 +1,20 @@
+<?php
+
+/**
+ * @file
+ * Provides configurable blocks for a Twitter feed.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function twitter_block_help($route_name, RouteMatchInterface $route_match) {
+  $help_text = '';
+  switch ($route_name) {
+    case 'help.page.twitter_block':
+      $help_text = '<p>' . t('This module provides configurable blocks for a Twitter feed.') . '</p>';
+      return $help_text;
+  }
+}
diff --git a/web/themes/asc_bootstrap/assets/sass/components/_people.scss b/web/themes/asc_bootstrap/assets/sass/components/_people.scss
index c430585ca36a6a23b93d569d0566255773841cf9..9c6791db218ba6d124cb9c8e92c6bf08a39c0fde 100644
--- a/web/themes/asc_bootstrap/assets/sass/components/_people.scss
+++ b/web/themes/asc_bootstrap/assets/sass/components/_people.scss
@@ -160,6 +160,69 @@
 }
 
 
+// --------------------------------------------------
+
+//## Mobile View.
+
+#views-exposed-form-people-directory-page-2 {
+  background: #D8D8D8;
+  padding: 10px;
+
+  details {
+    background: #ffffff;
+    padding: 5px 10px;
+    border-radius: 8px;
+    margin: 10px 0;
+  }
+
+  .ppl-filter-heading {
+    color: #225D62;
+    margin: 5px 0;
+    text-transform: capitalize;
+  }
+
+  .ppl-taxon-heading {
+    margin-top: 50px;
+    margin-bottom: -5px;
+  }
+
+  .form-checkbox {
+    -webkit-appearance: none;
+    -moz-appearance: none;
+    -ie-appearance: none;
+    background-color: #fafafa;
+    border: 1px solid #cacece;
+    box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05);
+    padding: 9px;
+    border-radius: 3px;
+    display: inline-block;
+    position: relative;
+    top: 4px;
+    margin-right: 5px;
+
+    &:active, &:checked:active {
+      box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px 1px 3px rgba(0,0,0,0.1);
+    }
+
+    &:checked {
+      background-color: #442369;
+      border: 1px solid #adb8c0;
+      box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05), inset 15px 10px -12px rgba(255,255,255,0.1);
+      color: #99a1a7;
+    }
+
+    &:checked:after {
+      content: '\2713';
+      font-size: 14px;
+      position: absolute;
+      top: 0px;
+      left: 3px;
+      color: $white;
+    }
+  }
+
+}
+
 
 // --------------------------------------------------
 
diff --git a/web/themes/asc_bootstrap/css/style.css b/web/themes/asc_bootstrap/css/style.css
index 24cb0db827c1d723083f9ed59944d28d01d3d8f0..7915247b03a01993918c2893e9c3f211fa67f38a 100644
--- a/web/themes/asc_bootstrap/css/style.css
+++ b/web/themes/asc_bootstrap/css/style.css
@@ -11311,50 +11311,109 @@ article.news-story {
   height: 100%;
 }
 
-/* line 168, ../assets/sass/components/_people.scss */
+/* line 167, ../assets/sass/components/_people.scss */
+#views-exposed-form-people-directory-page-2 {
+  background: #D8D8D8;
+  padding: 10px;
+}
+/* line 171, ../assets/sass/components/_people.scss */
+#views-exposed-form-people-directory-page-2 details {
+  background: #ffffff;
+  padding: 5px 10px;
+  border-radius: 8px;
+  margin: 10px 0;
+}
+/* line 178, ../assets/sass/components/_people.scss */
+#views-exposed-form-people-directory-page-2 .ppl-filter-heading {
+  color: #225D62;
+  margin: 5px 0;
+  text-transform: capitalize;
+}
+/* line 184, ../assets/sass/components/_people.scss */
+#views-exposed-form-people-directory-page-2 .ppl-taxon-heading {
+  margin-top: 50px;
+  margin-bottom: -5px;
+}
+/* line 189, ../assets/sass/components/_people.scss */
+#views-exposed-form-people-directory-page-2 .form-checkbox {
+  -webkit-appearance: none;
+  -moz-appearance: none;
+  -ie-appearance: none;
+  background-color: #fafafa;
+  border: 1px solid #cacece;
+  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0px -15px 10px -12px rgba(0, 0, 0, 0.05);
+  padding: 9px;
+  border-radius: 3px;
+  display: inline-block;
+  position: relative;
+  top: 4px;
+  margin-right: 5px;
+}
+/* line 203, ../assets/sass/components/_people.scss */
+#views-exposed-form-people-directory-page-2 .form-checkbox:active, #views-exposed-form-people-directory-page-2 .form-checkbox:checked:active {
+  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0px 1px 3px rgba(0, 0, 0, 0.1);
+}
+/* line 207, ../assets/sass/components/_people.scss */
+#views-exposed-form-people-directory-page-2 .form-checkbox:checked {
+  background-color: #442369;
+  border: 1px solid #adb8c0;
+  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0px -15px 10px -12px rgba(0, 0, 0, 0.05), inset 15px 10px -12px rgba(255, 255, 255, 0.1);
+  color: #99a1a7;
+}
+/* line 214, ../assets/sass/components/_people.scss */
+#views-exposed-form-people-directory-page-2 .form-checkbox:checked:after {
+  content: '\2713';
+  font-size: 14px;
+  position: absolute;
+  top: 0px;
+  left: 3px;
+  color: #ffffff;
+}
+
+/* line 231, ../assets/sass/components/_people.scss */
 .path-user .page-header {
   display: none;
 }
 
-/* line 172, ../assets/sass/components/_people.scss */
+/* line 235, ../assets/sass/components/_people.scss */
 .bio-header-top {
   background: #F9F9F9;
 }
-/* line 177, ../assets/sass/components/_people.scss */
+/* line 240, ../assets/sass/components/_people.scss */
 .bio-header-top .bio-top-right img {
   padding: 15px 0;
   width: 100%;
 }
-/* line 185, ../assets/sass/components/_people.scss */
+/* line 248, ../assets/sass/components/_people.scss */
 .bio-header-top .field--name-field-google-map-location .field--item {
   padding: 20px 0;
 }
-/* line 188, ../assets/sass/components/_people.scss */
+/* line 251, ../assets/sass/components/_people.scss */
 .bio-header-top .field--name-field-google-map-location .field--item .geolocation-formatter-map-wrapper {
   border: solid 2px #979797;
 }
 
-/* line 195, ../assets/sass/components/_people.scss */
+/* line 258, ../assets/sass/components/_people.scss */
 .bio-header {
   width: 100%;
   float: left;
   margin: 0 0 20px;
 }
 
-/* line 201, ../assets/sass/components/_people.scss */
+/* line 264, ../assets/sass/components/_people.scss */
 .bio-btm-left {
   margin-bottom: 40px;
 }
-/* line 204, ../assets/sass/components/_people.scss */
+/* line 267, ../assets/sass/components/_people.scss */
 .bio-btm-left h2 {
   font-size: 22px;
 }
-/* line 208, ../assets/sass/components/_people.scss */
+/* line 271, ../assets/sass/components/_people.scss */
 .bio-btm-left .bio-exp {
   padding-left: 0;
 }
 
-/* line 214, ../assets/sass/components/_people.scss */
+/* line 277, ../assets/sass/components/_people.scss */
 .bio-btm-right h3 {
   font-size: 18px;
   padding-top: 20px;