In Drupal, entities are a representation of data that have a specific structure. There are specific entity types, which have different bundles and fields attached to those bundles. Bundles are implementations of entities that can have fields attached to themselves....
Day: November 2, 2016
Drupal
Drupal 8 study note 7 : Plug and Play with Plugins-2 Creating a custom plugin type
The plugin system provides means to create specialized objects in Drupal that do not require the robust features of the entity system. In this recipe, we will create a new plugin type called Unit that will work with units of...
Drupal
Drupal 8 study note 6 : Plug and Play with Plugins-1 Creating blocks using plugins
Creating blocks using plugins Create the src/Plugin/Block directory in your module. This will translate the \Drupal\mymodule\Plugin\Block namespace and allow a block plugin discovery. Create a Copyright.php file in the newly created folder so that we can define the Copyright class...