11.0.x

What Are Drupal Code Standards?

Last updated

Before you dive into using coding standards it makes sense to understand exactly what they are and why they’re important, generally and specifically in the Drupal community. In this tutorial we will look at:

  • What coding standards are
  • Why following coding standards is a good idea
  • Where coding standards come from

By the end of this tutorial you'll have a better understanding of what coding standards are, and why you should be adhering to them when you write code.

Typed Data API

Last updated

Entity Validation API

Last updated

Entity Access Control

Last updated

Render API Callback Properties

Last updated

Get Information about the Current User

Last updated

Use Lazy Builders and Placeholders

Last updated

Add Classes and HTML Attributes to Render Arrays

Last updated

Use #access to Show/Hide Elements in a Render Array

Last updated

Whitespace Control with Twig

Last updated