Skip to header Skip to main navigation Skip to main content Skip to footer
  • Log in
Home
DrupalVIP
Freelancer service with great care and enthusiasm.
  • Home
  • Products
  • Blog
  • Support
    • Dictionary
    • Drupal Resources
    • External Resources

Drupal Service

Breadcrumb

  • Home
  • Drupal Service

Drupal Service

Displaying 1 - 3 of 3

Simple Configuration API

The configuration API comes in two flavors - the (simple) Config API and the Configuration Entity API.

The key difference is that the Config API is the singleton use case.

A singleton is where there can be only a single instance of this configuration.

A good example would be the site's name.

The Configuration Entity API should store multiple configuration sets - for example, node types, views, vocabularies, and fields.

 

Configuration API
Code Example
app.mailer service
Drupal 9
config.factory
Drupal Service
Config object

Creating And Using URLs And Links Programmatically

When building a new module, you always get to the point where you want to use the routes you have been created, or other URLs, so if you find yourself always looking for how to print out a URL, this article is for you.

The difficulty is that finding or printing out a URL is very contextual and there is more than one way to get or use this information in Drupal. 

You might have a node object that you need to convert into a fully qualified path, or you want to print out the path of a route, each of which has different approaches.

Code Example
Drupal 9
Drupal Request
Symfony
Module Development
Twig
Drupal URL
Drupal Service
Drupal Link

How to keep your session data

Sometimes you need to temporarily store information per same user, which means handling his session data, in previous version of drupal it was easy and more like handling it in PHP programming, but with drupal 8, since the desire was to do everything in OOP strategy it changed.

This article will review some of the options to handle session date which are available on drupal8.

First lets remember how it was done with drupal7: using the $_SESSION in module file during the hooking implementation

In Drupal 8 there's two services to handle session data:

Drupal
Module Development
Code Example
PrivateTempStoreFactory
Storing Session Data
Symfony
ContainerInterface
Drupal Service
Dependency Injection
PHP Session
Subscribe to Drupal Service

The Freelancer Assistance

Drupal Training

drupal training session

Proactive Maintenance

Proactive Maintenance

Drupal Development

Drupal Development

Drupal Shared Space

Drupal Shared Space

Site Management

Site Management

Fullstack Service

Fullstack Service
Review All Services

Buy Hourly Support

 

Drupal platform support for complex websites. The service includes support, training, troubleshooting, fixes, updates, tool creation and module building.
* Minimum order is for 5 hours of support
* For every 20 hours of order you will be entitled to an additional hour of support
* For every 50 hours of order you will be entitled to 5 additional hours of support

 

>> Payment <<

 
cards

מופעל על-ידי paypal

Legal

  • Home
  • Contact
  • Products

Footer menu

  • Home
  • Contact
  • Products

Copyright © 2026 DrupalVIP project of Automatic Frameworks - All rights reserved

Developed and Maintain by Jonathan Ben Hur Freelancer