Drupal 8 APIs

Drupal 8 introduces many new APIs and keeps only some of the Drupal 7/6 API. This section details the APIs in Drupal 8.

Before diving into the documentation below you might want to read the background and prerequisites, and the Creating Drupal 8.x modules guides, both of which explain some concepts and terminology that will be assumed knowledge in the API documentation here.

For a crash course, but with some real depth, check out Understanding Drupal 8. It provides an overview of many of the key D8 APIs.

Finally, review the Drupal 8 backwards compatibility policy for an explanation of what may change between minor versions of Drupal 8 and what will remain stable.

Authentication API

Documentation for Authentication API in Drupal 8.

Block API

Documentation for Block API in Drupal 8.

Cache API

Documentation for Cache API in Drupal 8.

CKEditor API

Documentation for CKEditor API in Drupal 8.

Configuration API

Configuration API in Drupal 8.

Database API

Documentation for the Database API in Drupal 8.

Entity API

Drupal 8 Entity API documentation.

Entity Validation API

Entity Validation API in Drupal 8.

Filter API

Documentation for Filter API in Drupal 8.

Form API

Form API in Drupal 8.

JavaScript API

Drupal 8 JavaScript API.

Logging API

Documentation for Logging API in Drupal 8.

Menu API

Menu API in Drupal 8.

Middleware API

Documentation for Middleware API in Drupal 8.

Migrate API

Migrate API in Drupal 8.

Plugin API

The Plugins API is used to extend Drupal and add new functionality, and allow modules to define new plugin types.

RESTful Web Services API

RESTful Web Services API in Drupal 8.

Render API

Render API in Drupal 8.

Responses in Drupal 8

Responses in Drupal 8

Routing system

Routing system in Drupal 8.

Runtime Assertions

A runtime assertion is a statement that is expected to always be true at the point in the code it appears at. They are tested using PHP's

Serialization API

Serialization API in Drupal 8.

Services and dependency injection

Services and dependency injection in Drupal 8.

State API

Documentation for State API in Drupal 8.

Text Editor API

Documentation for Text Editor API in Drupal 8.

Tour API

Documentation for Tour API in Drupal 8.

Translation API (Code text)

Documentation for Translation API (Code text) in Drupal 8.

Typed Data API

Typed Data API in Drupal 8.

Update API

Update API for Drupal 8 (hook_update_N() etc.)

Quick Edit API

Documentation for Quick Edit API in Drupal 8.