Drupal

To create the custom module in Drupal 8 we have to follow the below steps:- Custom module folder structure custom field for content type modulename – modulename/src — modulename/src/Controller — modulename/src/Controller/ModulenameController.php — modulename/src/Plugin — modulename/src/Plugin/Field — modulename/src/Plugin/Field/FieldFormatter — modulename/src/Plugin/Field/FieldFormatter/FieldFormatter.php — modulename/src/Plugin/Field/FieldType — modulename/src/Plugin/Field/FieldType/Fieldname.php — modulename/src/Plugin/Field/FieldWidget — modulename/src/Plugin/Field/FieldWidget/FieldWidget.php -modulename/modulename.info.yml -modulename/modulename.module -modulename/modulename.routing.yml -modulename/modulename.info.yml ———————————————- -modulename/modulename.module ————————————— -modulename/modulename.routing.yml