/drupal8_examples

Examples / practice Drupal 8 modules and themes

Primary LanguagePHP

Custom Drupal 8 Entities w/ Bundle Examples

  1. Most Simple - The Most Simple entity with bundles possible. Easy to create (very little code), hard to use (no links).
  2. Simple - Simple Entity with bundles that is much more usable than the Most Simple Entity. Has links, useful ListBuilders, and informative messages.
  3. Practical - More practical entity with bundles, generated bundle permissions, custom access control, entity fields, bundle descriptions, and much better ListBuilders with useful information. Also has interfaces for the Entity classes as best practice.

Related Blog Post

Learning about Drupal 8 Events

  1. Module -
  2. Registering services - Registering services
  3. Config CRUD Event Sbuscriber - Example event subscriber that listens for Config object events.
  4. Custom Event - UserLoginEvent - Custom Event that will be dispatched on hook_user_login().
  5. Custom Event - Dispatching Events - Dispatching an event during hook_user_login().
  6. Custom Event - Subscribing to Custom Event - Event Subscriber that listens for our custom UserLoginEvent.

Related Blog Post

The most bare-minimum possible Drupal 8 module

  1. Module

The most bare-minimum possible Drupal 8 theme

  1. Theme - This can be enabled from the modules folder.