原文地址: https://www.drupal.org/node/2192175
原文版本: September 23, 2014.
This page provides an example of how to create a content entity type, with administration management pages, for Drupal 8.
Note: We try to improve the module as well as the documentation in sync with the development process of core. It is intended for usage with the latest dev version. You can also have a peek in core modules such as node and comment which make use of the ContentEntityType.
原文地址: https://www.drupal.org/documentation/modules/entityreference
原文版本: August 30, 2013.
自 Drupal 8 以往, 实体引用 (Entity Reference) 模块成为核心模块, 它提供一个字段用以引用其他实体.
需要有关实体的更多信息, 请参见 实体 API 文档.
- 阅读更多 关于 实体引用
- 登录或注册以发表评论
原文地址: https://www.drupal.org/documentation/modules/hal
原文版本: August 9, 2014.
(原文未成)
The HAL module is included in Drupal core. When enabled, the HAL module serializes entities using HAL (Hypertext Application Language).
What is it?
For general information about the language, see the informal or formal (06) HAL specification.
原文地址: https://www.drupal.org/node/2207559
原文版本: August 25, 2014.
Entity types, both configuration and content entity are defined using annotation in the entity class.
The Example entity is defined in Drupal\example\Entity\Example.php
(assumes the module name is "example"):
原文地址: https://www.drupal.org/node/2143497
原文版本: November 25, 2013.
(原文未成)
* Final name not yet defined, see #1976158: Rename entity storage/list/form/render "controllers" to handlers
While entities represent a piece of data, controllers are responsible for acting on and with them. The basic concept was introduced in Drupal 7, where the controller provided the API to load entities. That class was then extended in the entity.module to provide full CRUD support and other types of controllers were created.
原文地址: https://www.drupal.org/node/2143503
原文版本: June 26, 2014.
(原文未成)
(Stub)
Content entities examples
- node
- comment
- user
- 阅读更多 关于 内容型实体 (翻译中)
- 登录或注册以发表评论
原文地址: https://www.drupal.org/node/2143501
原文版本: May 9, 2014.
Configuration entities using the new entity API in Drupal 8 in order to keep configuration into the DB. The difference between the config entities to content entites:
- Configurable entity can be exported using the new CMI system.
- Configurable entity don't have field due to the way they stored in the DB
- Configurable entity defined a schema file unlike content entities which defined by hook_schema()
- 阅读更多 关于 配置型实体 (翻译中)
- 登录或注册以发表评论
原文地址: https://www.drupal.org/node/2143499
原文未成
- 阅读更多 关于 梱束 (翻译中)
- 登录或注册以发表评论
原文地址: https://www.drupal.org/node/2124403
原文版本: May 28, 2014.
This covers the generic entity API, configuration entity and content entity specific API's will be covered in specific chapters. TODO: Link once created.
Check