Create a configuration entity

Keyboard Shortcuts

This video walks through how to use the Drupal Console command-line utility to generate a custom configuration entity to store video transcoding profiles. Then we spend some time examining the generated configuration entity, so we can see how it works. Next, we'll log into our Drupal site and actually create some transcode profiles.

(gentle music)…- [Amber] In this tutorial, we'll walk through the process…of creating a custom configuration entity in Drupal.…First, we'll use Drupal Console to generate…a custom configuration entity to store…video transcoding profiles.…Then, we're going to spend some time looking at…the generated files to see how they work together.…Finally, we'll log into our Drupal site…and create some transcode profile entities.…We're going to use Drupal Console once again…to generate code for our module.…

You may have already created the transcode profile…module, along with a basic admin settings form…in a previous lesson.…If you haven't, you can download the files…for this lesson and follow along.…I've navigated to the doc root of my Drupal site.…And first, I'm going to enter drupal generate…entity config.…Which brings me to an interactive prompt.…First, I'll enter the module name transcode profile.…Which happens to be the default, for me.…Defaults are displayed in square brackets.…

If it's not the default for you,…start typing the machine name…

Resume Transcript Auto-Scroll

Author

Released

11/29/2016

With Drupal 8 comes a unified way of storing your site's configuration. Drupal's configuration system allows for an efficient development workflow when leveraging tools like Drush and Git. And it's not limited to developers. The Drupal UI also provides easy-to-use tools for administrators who need to manage their site's configuration.

In this course you'll learn all about the new configuration system in Drupal. Explore key concepts in configuration management and important skills, such as moving configuration from a local development environment to production and using the configuration system in a module. Find out how to use command-line tools such as Drupal Console, Drush, and Git, as well as GUI tools as an alternative for tasks like cloning a site and importing and exporting site configuration.

Developers can use the demo module provided with the exercise files, Transcode Profile, to explore default configuration, custom configuration entities, administrative forms, and working with configuration entity data in a form. By the end of the course, you'll understand how you can manage configuration between instances of your site and leverage the Drupal configuration system in a module.

Skills covered in this course

Course Retiring Soon

Drupal 8: Configuration Management will be retired from the lynda.com library on March 29th, 2019. Training videos and exercise files will no longer be available, but the course will still appear in your course history and certificates of completion.

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start My Free Month

Start your free month on LinkedIn Learning, which now features 100% of Lynda.com courses. Develop in-demand skills with access to thousands of expert-led courses on business, tech and creative topics.