> For the complete documentation index, see [llms.txt](https://cathy-thy.gitbook.io/drupal-9/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cathy-thy.gitbook.io/drupal-9/custom-modules/introduction.md). Agents can also search and read this documentation through its [MCP server](https://cathy-thy.gitbook.io/drupal-9/~gitbook/mcp).

# Introduction

There are few points you should understand before creating your first custom module.

### 1. How to enable custom module

It's simple to let Drupal know you have created custom module.

After you have added the following folders and "xxx.info.yml", you should be able to view your module on Drupal UI.&#x20;

{% hint style="info" %}
Be careful of the naming convention. Files inside should start with the name same as folder name (in this case, "demo\_module").
{% endhint %}

![Create "custom" folder under modules if you haven't completed that.](https://3571417386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2c2poVQgh9M8bTCLRSBz%2Fuploads%2FdnofoNvG8DZq7B8pDHL1%2Fimage.png?alt=media\&token=a2fff9b0-93f3-4586-afee-e78e5dbe856f)

```
// demo_module.info.yml content

name: 'Sample Demo Module'
description: 'demonstrate how to add a module'
package: Custom
type: module
core_version_requirement:  ^9
```

After adding the folder, navigate to the Drupal UI, you should be able to view your module on the extent page.

![](https://3571417386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2c2poVQgh9M8bTCLRSBz%2Fuploads%2FrzJ54JjmaxKMsz6Lq0q0%2Fimage.png?alt=media\&token=f6e1dcb0-fb43-475b-840f-6894be732012)
