Port to Backdrop of the UI functionality of Drupal's Entity API.
Provides an administrative interface for managing entities defined in
hook_entity_info()
.
Install this module using the official Backdrop CMS instructions at https://backdropcms.org/guide/modules
Add the appropriate "admin ui" key to hook_entity_info()
or modify an existing
implementation via hook_entity_info_alter()
. Admin UI key structure:
- admin ui: An array of optional information used for providing an
administrative user interface. To enable the UI at least the path must be
given. Apart from that, the 'access callback' (see below) is required for
the entity, as well as the 'ENTITY_TYPE_form' for editing, adding and
cloning. The form gets the entity and the operation ('edit', 'add' or
'clone') passed. See entity_ui_get_form() for more details.
Known keys are:
- path: A path where the UI should show up as expected by hook_menu().
- controller class: (optional) A controller class name for providing the
UI. Defaults to EntityDefaultUIController, which implements an admin UI
suiting for managing configuration entities. Other provided controllers
suiting for content entities are EntityContentUIController or
EntityBundleableUIController (which work fine despite the poorly named
'admin ui' key).
For customizing the UI inherit from the default class and override
methods as suiting and specify your class as controller class.
- file: (optional) The name of the file in which the entity form resides
as it is required by hook_menu().
- file path: (optional) The path to the file as required by hook_menu. If
not set, it defaults to entity type's module's path, thus the entity
types 'module' key is required.
- menu wildcard: The wildcard to use in paths of the hook_menu() items.
Defaults to %entity_object which is the loader provided by Entity API.
Example:
'admin ui' => array(
'path' => 'admin/structure/profiles',
'file' => 'profile2.admin.inc',
'controller class' => 'Profile2TypeUIController',
),
This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.
- Andy Shillingford github.com/docwilmot
- Alejandro Cremaschi github.com/argiepiano
The Drupal Entity API project https://www.drupal.org/project/entity
entity_ui's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.