跳转到主要内容
rat 提交于 24 September 2014

原文地址: 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.

rat 提交于 24 September 2014

原文地址: https://www.drupal.org/documentation/modules/entityreference

原文版本: August 30, 2013.

自 Drupal 8 以往, 实体引用 (Entity Reference) 模块成为核心模块, 它提供一个字段用以引用其他实体.

需要有关实体的更多信息, 请参见 实体 API 文档.

rat 提交于 24 September 2014

原文地址: 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.

rat 提交于 24 September 2014

原文地址: 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.

rat 提交于 24 September 2014

原文地址: 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:

  1. Configurable entity can be exported using the new CMI system.
  2. Configurable entity don't have field due to the way they stored in the DB
  3. Configurable entity defined a schema file unlike content entities which defined by hook_schema()
订阅