Please write me a sample Drupal 10 module defining a block saying "Hello world"
- User
Please write me a sample Drupal 10 module defining a block saying "Hello world"
Assistant
Sure, here's an example of a Drupal 10 module that defines a block saying "Hello world":
- Create a new directory in your Drupal 10 modules directory (e.g., /modules/custom) and name it "hello_world_block".
- Inside the "hello_world_block" directory, create a new file called "hello_world_block.info.yml". This file will contain the module information and permissions. Here's the content of this file:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.