Yogesh Chaugule's Blog
In Drupal 8, module's weight is stored into ConfigFactory. Here's how to get or set module weight.
Get module weight:
As a developer we always been into position where we need to write a custom script which bootstrap's Drupal Core from code and do some operations. This is pretty straight forward when working single site. But when working with Multisite or sub-site, how we can do this.
When accessing Laravel in browser, the URL contains "index.php" OR "public/index.php". Having these in URL is not a good SEO practice.
To remove "index.php" from URL, you can write a small code snippet in ".htaccess" file located at "public/" directory.
User(s) are very important part of any system. Below is how to add new user, assign password to user, add new Group in Linux using command line.
In this part we'll see some advanced usage of mysqldump command.
When building sites, many client wants users to get redirected to particular page (like Site Home Page) or page based on User Roles. Today we'll see how we can redirect user after login to particular page.
NOTE: I've defined my own custom page using [MODULENAME].routing.yml named as "custom.redirect_callback", which we'll be using for redirecting user.
vi is default advanced editor available in majority of the UNIX Operating System. It stands for visual Editor. It becomes very useful when you're using Terminal and want to access/edit file on UNIX system. Following are some of the useful vi commands which can be used for quick editing of file.