O'Reilly logo

Drupal 8 Module Development by Daniel Sipos

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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", ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required