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

Identifiers

The entity type annotations start with some basic information about them, ID, label, and things like that. For example, consider the following Node entity:

 *   id = "node", *   label = @Translation("Content"), *   label_singular = @Translation("content item"), *   label_plural = @Translation("content items"), *   label_count = @PluralTranslation( *     singular = "@count content item", *     plural = "@count content items" *   ),

These are used in various places in the system to properly be able to reference the entity type by machine and human readable names.

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