Custom Drupal Installation Profile as a Distribution

Posted by abhisekmazumdar - October 25, 2023
Lego

When working with a custom Drupal installation profile, you have the option to declare it as a distribution. By specifying the profile as a distribution in the profilename.info.yml file, you can enable the installer to automatically select this installation profile. Here's an example:


distribution:
 name: My Cool Profile
 install:
  theme: my_cool_theme
  finish_url: /let-got-to-a-cool-page

In the above example, the  distribution section is added to the  profilename.info.yml file. This section includes additional options such as the distribution name, theme, and finish URL. The  theme option sets the specified theme as the theme for the distribution. The  finish_url option redirects the user to a specified page after the installation tasks are completed.