Restoring our database snapshot

Before we get started, let's open up the Chapter05/start folder located in our exercise files and restore the database snapshot by dropping the tables in our current Drupal 8 instance and importing the drupal8.sql file. Information on how to restore database snapshots was covered in Chapter 1, Setting Up Our Development Environment.

After restoring our database snapshot, we can browse our Drupal 8 instance by navigating to the homepage in our browser. We should see the typical Bartik theme being displayed with four pages containing content to match our mockup, including Home, About Us, Blog, and Contact Us.

Restoring our database snapshot

At this point, we will need to log in to Drupal using the User login link, which has replaced the Drupal 7 login block. Once at the Log in screen, we enter admin's username and admin's password.

While we are using a very simple username/password combination to develop, I would advise you to use something stronger and more secure before moving any Drupal instance to a production web server. For more security features in Drupal 8, check out this article: https://dev.acquia.com/blog/drupal-8/10-ways-drupal-8-will-be-more-secure/2015/08/27/6621.

All of the content we need to recreate our mockup exists in the database, and as we begin to theme each section of our site, we will simply reference that content. If there is anything new or different with how content was created or configured, we will stop to briefly discuss it. For now, we will dive right into discussing the benefits of creating a custom theme and then proceed to setting up our theme folders.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.129.42.243