Installation Guide#
Complete installation instructions for Entity Builder and its extensions.
Requirements#
| Requirement | Version |
|---|---|
| Drupal | 11.x |
| PHP | 8.3+ |
| Composer | 2.x |
Core Module Installation#
Via Composer (Recommended)#
Via Drupal UI#
- Download the module from drupal.org
- Extract to
web/modules/contrib/eb - Navigate to Extend (
/admin/modules) - Enable "Entity Builder"
- Clear caches
Extension Modules#
Entity Builder has several extension modules that add functionality.
Quick Install All Extensions#
To install Entity Builder with all extensions in one go:
AG-Grid Requirement
The eb_aggrid module requires the AG-Grid library via Asset Packagist. See the eb_aggrid section below for Asset Packagist setup.
Individual Extension Installation#
Entity Builder UI (eb_ui)#
Provides the base UI functionality with a YAML editor and shared API endpoints.
Features:
- CodeMirror-based YAML editor
- Live validation
- Preview before apply
- Export/Import capabilities
Entity Builder AG-Grid (eb_aggrid)#
Provides a powerful AG-Grid spreadsheet interface for visual editing. Strongly recommended for the best user experience.
Library Requirement
eb_aggrid requires the AG-Grid Community library (33.0.0) which must be installed via Asset Packagist.
Step 1: Configure Asset Packagist (if not already done)#
Add the following to your project's root composer.json:
Install the composer-installers-extender package:
Step 2: Install the AG-Grid Library#
This installs the library to web/libraries/ag-grid-community.
Step 3: Enable the Module#
Features:
- Excel-like spreadsheet interface
- Tabbed editing (Bundles, Fields, Field Groups, Displays)
- Real-time validation with visual feedback
- Smart defaults and auto-generation
- Keyboard shortcuts for efficiency
- Debug mode for troubleshooting
Field Group Extension (eb_field_group)#
Adds support for organizing fields into visual groups.
Adds:
field_group_definitionsarray in YAMLform_group/view_groupproperties on fields- Support for fieldset, details, tabs, and HTML elements
Pathauto Extension (eb_pathauto)#
Adds URL alias pattern configuration to bundles.
Adds:
pathauto_patternproperty on bundles
Auto Entity Label Extension (eb_auto_entitylabel)#
Adds automatic label generation configuration.
Adds:
auto_entitylabel_statusproperty on bundlesauto_entitylabel_patternproperty on bundles
Post-Installation Configuration#
1. Set Permissions#
Navigate to People > Permissions (/admin/people/permissions) and configure:
Tier 3: Administrator
| Permission | Description |
|---|---|
administer entity builder |
Full administrative access |
Tier 2: Privileged Operations
| Permission | Description |
|---|---|
apply entity definitions |
Apply definitions created in the UI |
import entity architecture |
Import and apply YAML files from filesystem |
export entity architecture |
Export full site architecture to YAML |
rollback entity operations |
Rollback previously executed operations |
Tier 1: User Permissions
| Permission | Description |
|---|---|
create entity definitions |
Create new definitions |
edit own entity definitions |
Edit definitions you created |
view own entity definitions |
View definitions you created |
delete own entity definitions |
Delete definitions you created |
export entity definitions |
Export own definitions to YAML |
preview entity definitions |
Preview changes without applying |
2. Configure Settings#
Navigate to Configuration > Development > Entity Builder > Settings:
| Setting | Default | Description |
|---|---|---|
| Debug Mode | Off | Enable detailed logging |
| Log Operations | On | Log all operations to watchdog |
| Enable Preview | On | Show preview before applying |
| Import Max File Size | 5 MB | Maximum import file size |
| Rollback Retention | 30 days | How long to keep rollback data |
3. Verify Installation#
Run the discovery command to verify all services are working:
Expected output shows available field types, widgets, and formatters.
Upgrading#
Minor Version Updates#
Major Version Updates#
- Review the CHANGELOG for breaking changes
- Backup your database
- Update via Composer
- Run database updates
- Clear caches
- Test existing definitions
Uninstallation#
Data Loss Warning
Uninstalling will remove all EbDefinition config entities and rollback data.
Troubleshooting#
Module Dependencies#
If you see dependency errors:
AG-Grid Library Issues#
If eb_aggrid's grid interface doesn't load:
-
Verify the library is installed:
-
If the library is missing, ensure Asset Packagist is configured (see eb_aggrid installation)
-
Install or reinstall the library:
-
Check browser console for JavaScript errors
Cache Issues#
If changes aren't appearing:
Service Errors#
If you see service-related errors after installation: