Handlers

The last main group of settings on the entity type plugins are the handlers. Handlers are the objects used by the entity API to manage various tasks related to entities. The Node entity type is a good example to look at, because it defines quite a lot of them, giving us an opportunity to learn:

 *   handlers = { *     "storage" = "Drupal\node\NodeStorage", *     "storage_schema" = "Drupal\node\NodeStorageSchema", *     "view_builder" = "Drupal\node\NodeViewBuilder", *     "access" = "Drupal\node\NodeAccessControlHandler", *     "views_data" = "Drupal\node\NodeViewsData", *     "form" = { *       "default" = "Drupal\node\NodeForm", *       "delete" = "Drupal\node\Form\NodeDeleteForm", *       "edit" = "Drupal\node\NodeForm" *     }, *     "route_provider" = { * "html" = "Drupal\node\Entity\NodeRouteProvider", ...

Get Drupal 8 Module Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.