Skip to main content
Blog IT Information technology

Main navigation

  • Home
  • Contact us

User account menu

  • Log in
  • Register

symfony

  1. Home
  2. Blogs
  3. Symfony

Drupal Create Node Programmatically

Drupal is a content management system that allows you to create and manage website content in an organized way. One of the ways to create content in Drupal is by creating a node programmatically. A node is a fundamental building block of a Drupal website and represents a piece of content such as an article, a page, or a product.

To create a node programmatically in Drupal 8+, you will need to use the Drupal's Entity API, specifically the Node class. Here's an example of how you can create a basic node:

Web Developer Web Developer
1 year 6 months ago
Read More

How to programmatically login/authenticate a user Symfony

Last night I was experimenting with Silex and I needed a register/login form. Silex comes with a SecurityServiceProvider which gives you the power of the symfony/security component. But I couldn’t figure out how to programmatically login the user after registration. So here’s my solution:

In order to login you have to do following steps

Blog IT Blog IT
2 years 3 months ago
Read More

How to keep symlinks in web/bundles after composer update Symfony

When updating vendor through "composer update" or "composer install", the content of "Resources/public" of each bundle is copied into web/bundles, to create symlinks you have to make a small change in composer.json.

{
    "extra": {
        "symfony-assets-install":"symlink",
    }
}

Blog IT Blog IT
2 years 3 months ago
Read More

Subscribe to the Newsletter

Blog Category

Web
Mobile
Security
Design

Tags keyword

html
css
php
Sass
html5
drupal
drupal 8
drupal 9
drupal 10
laravel
symfony
vue.js
vue
js
css3
jquery
javascript
image
table
iframe
link
mail
twig
drush
module
git
gitflow
web
drupal 7

Monthly archive

  • May 2018 (1)
  • May 2019 (1)
  • November 2019 (1)
  • December 2019 (1)
  • March 2020 (2)
  • May 2020 (3)
  • June 2020 (2)
  • July 2020 (3)
  • November 2020 (1)
  • December 2021 (3)
  • October 2022 (1)
  • November 2022 (7)
  • December 2022 (15)
  • February 2023 (1)
  • April 2023 (1)
  • May 2023 (2)
  • June 2023 (3)
  • July 2023 (4)
  • August 2023 (8)
  • September 2023 (3)
  • October 2023 (9)
  • November 2023 (5)
  • September 2024 (1)

Copyright © 2025 - Blog Information technology - Sitemap