By editor, 13 October, 2016 Create a custom Service Tags Drupal 8 Code Services Create a Service on Drupal 8 1. Create a custom module (here : mytest) 2. Create the service Class Example: src/MTService.php
By editor, 11 October, 2016 Drupal 8 Service Tags Drupal 8 Code Services Get All available services list $services = \Drupal::getContainer()->getServiceIds(); Few use full services //Generate a new UUID $uuid = \Drupal::service('uuid')->generate();
By editor, 11 October, 2016 Custom Views Data handler for a custom Entity on drupal 8 Tags Drupal 8 Code Entity Views Once created your entity as Basic Entity or Full Entity, you can add a custom views handler.
By editor, 10 October, 2016 Create a custom Content Entity on drupal 8 (Full) Tags Drupal 8 Code Entity This is a full Example of the Entity 'Vehicle' with user interfaces for: - Actions (Create, Edit, Delete) - Listing builder - Entity settings pages - Manage fields - Manage form display - Manage display
By editor, 10 October, 2016 Create a custom Content Entity on drupal 8 (Basic) Tags Drupal 8 Code Entity Drupal 8 has two type of entities, ContentEntity and ConfigEntity. Content entity is based on database table and config entity is based on Drupal config table.