Noida
Account created on 8 March 2016, almost 9 years ago
#

Recent comments

🇮🇳India jeetmail72 Noida

Set menu weight

🇮🇳India jeetmail72 Noida

Adding related content

🇮🇳India jeetmail72 Noida

Added $query->accessCheck(FALSE) for the entityQuery() and entityTypeManager() query.

🇮🇳India jeetmail72 Noida

Replace $selector from the CloseModalDialogCommand()

$response->addCommand(new CloseModalDialogCommand($selector, $persist));

with

$response->addCommand(new CloseModalDialogCommand($persist));

🇮🇳India jeetmail72 Noida

Replace DerivativeBase with DeriverBase under Dynamic contextual link generation section

🇮🇳India jeetmail72 Noida

Replace depreciated service path.alias_manager with path_alias.manager

Added drush devel-services to view available services in the Drupal 10+

🇮🇳India jeetmail72 Noida

Correct the order of cache context. The cache contexts are listed in the order of alphabetical.

foo:bar:[languages:language_interface]=en:[user.permissions]=A_QUITE_LONG_HASH:[route]=myroute.ROUTE_PARAMS_HASH

replace with 

foo:bar:[languages:language_interface]=en:[route]=myroute.ROUTE_PARAMS_HASH:[user.permissions]=A_QUITE_LONG_HASH
 

🇮🇳India jeetmail72 Noida

By convention, they are of the form thing:identifier — and when there's no concept of multiple instances of a thing, it is of the form thing. The only rule is that it cannot contain spaces.

Replace with below to simply the concept

By convention, identifiers follow the format thing:identifier. When there is no concept of multiple instances of a thing, the format is simply thing. The only rule is that identifiers cannot contain spaces.

🇮🇳India jeetmail72 Noida

Remove  implements BlockPluginInterface when extending the BlockBase class. The BlockBase class itself implements BlockPluginInterface.

I added an Example of cache context code snippets. 

🇮🇳India jeetmail72 Noida

 The drupal_get_path() deprecated in Drupal 9.3.

Replace the deprecated code with the Drupal service.

$path = drupal_get_path('module', 'your_module') . '/templates/email-table.html.twig';

with

$modulePath = \Drupal::service('extension.path.resolver')->getPath('module', 'learning');
$path = $modulePath . '/templates/email-table.html.twig';

 

🇮🇳India jeetmail72 Noida

Replaced

<a href="{{ url('<front>') }}" title="{{ 'Home'|t }}" rel="home" class="site-logo"></a>

with

{% trans %}Submitted by {{ author_name }} on {{ date }}{% endtrans %}

🇮🇳India jeetmail72 Noida

Replaced twig_debug to debug and twig_auto_reload to auto_reload

🇮🇳India jeetmail72 Noida

Added code to disable all Drupal cache bins and cache.backend.null services into services.yml file

🇮🇳India jeetmail72 Noida

Before:

In order to set the default value for any form element , you’ll need to add a config/install/THEME.settings.yml file with a simple line: SETTING_NAME: DEFAULT_VALUE.

After

In order to set the default value for any form element you add, you’ll need to add a config/install/THEME.settings.yml file with a simple line: SETTING_NAME: DEFAULT_VALUE.

🇮🇳India jeetmail72 Noida

The changes are deployed in the release of 1.0.7

🇮🇳India jeetmail72 Noida

I applied the patch and it is working fine in the Drupal 10.2 version

🇮🇳India jeetmail72 Noida

The changes are deployed in the release of 1.0.7

🇮🇳India jeetmail72 Noida

The changes are deployed in the release of 1.0.7

🇮🇳India jeetmail72 Noida

Added some more possible cache bins

$cache_bins = array('bootstrap','config','data','default','discovery','dynamic_page_cache','entity','menu','migrate','render','rest','static','toolbar');

replace with

$cache_bins = ['bootstrap', 'config', 'data', 'default', 'discovery', 'discovery_migration', 'dynamic_page_cache', 'entity', 'jsonapi_memory', 'jsonapi_normalizations', 'jsonapi_resource_types', 'menu', 'migrate', 'page', 'render', 'rest', 'static', 'toolbar'];

🇮🇳India jeetmail72 Noida

I apply the patch and test the functionality. It is working as expected

🇮🇳India jeetmail72 Noida

The patch was added to 1.0.6 release

🇮🇳India jeetmail72 Noida

The patch was added to 1.0.6 release

🇮🇳India jeetmail72 Noida

I apply the patch and test the functionality. It is working as expected

🇮🇳India jeetmail72 Noida

The patch was added to 1.0.6 release

🇮🇳India jeetmail72 Noida

I apply the patch and test the functionality. It is working as expected

🇮🇳India jeetmail72 Noida

I apply the patch and test the functionality. It is working as expected

🇮🇳India jeetmail72 Noida

I apply the patch and test the functionality. It is working as expected

🇮🇳India jeetmail72 Noida

Replace sucj with such

Running and coding with native Windows applications such as WAMPXAMPP or easyphp is also possible but adds even more limitations such as limited shell, file encoding, line ending, unavailability of Drush, slowness etc..

🇮🇳India jeetmail72 Noida

I have deployed the changes in our current release

🇮🇳India jeetmail72 Noida

I have deployed the changes in our current release

🇮🇳India jeetmail72 Noida

We have deployed the changes in our current release

🇮🇳India jeetmail72 Noida

I tested the patch and it is working fine.

🇮🇳India jeetmail72 Noida

I tested the patch and it is working fine.

🇮🇳India jeetmail72 Noida

I tested the patch and it is working fine.

🇮🇳India jeetmail72 Noida

Add an example to generate & validate tokens into URL implicitly.

🇮🇳India jeetmail72 Noida

Added example for adding access check login into Controller Content method.

🇮🇳India jeetmail72 Noida

Removed the js/common.js, js/jquery.noty.min.js and js/jquery-migrate-3.3.2.min.js files from the food.libraries.yml file.
Please review the patch.

🇮🇳India jeetmail72 Noida

Removed the font-awesome.min.css file from the classic_corporate_drupal_8_theme.libraries.yml file.
Please review the patch.

🇮🇳India jeetmail72 Noida

To make the code more readable, I removed the extra if conditions and format the code.

🇮🇳India jeetmail72 Noida

Replace Drupal 9 to Drupal 9+

🇮🇳India jeetmail72 Noida

Added "Configuration API" as related content

🇮🇳India jeetmail72 Noida

Added an example of Slug variable in the Controller

🇮🇳India jeetmail72 Noida

The changes are deployed in the new release

🇮🇳India jeetmail72 Noida

I checked with Drupal 10.2 and it is working fine with colorbox modules.

🇮🇳India jeetmail72 Noida

The changes are merged and deployed. Thanks @Anjali @kenyoOwen

🇮🇳India jeetmail72 Noida

I removed the README.txt file and added a patch. Please review.

🇮🇳India jeetmail72 Noida

I removed the deprecated function db_field_exists and fixed Drupal coding issues

🇮🇳India jeetmail72 Noida

I added a patch to fix the Config Export & Config Import issue and fix some naming convention.

🇮🇳India jeetmail72 Noida

Patch merged and deployed

🇮🇳India jeetmail72 Noida

Replace below line

First we'll add code to the for build code so the text field is populated with the value form the select field.

with

First, we will add a code to create a textfield that will be updated when the user selects an item from the select field.

🇮🇳India jeetmail72 Noida

Url::fromPath('/blog');

It should be replaced with Url::fromUserInput('/blog'); or Url::fromUri('internal:/blog');

Url::fromPath('/admin/structure/contact');

It should be replaced with Url::fromUserInput('/admin/structure/contact'); or Url::fromUri('internal:/admin/structure/contact');

🇮🇳India jeetmail72 Noida

Added drush generate controller command and Replace "Find more details about generate:controller here" link https://drupalconsole.com/docs/en/commands/generate-controller

🇮🇳India jeetmail72 Noida

Remove to from the State is written to using the set() method. string.

Updated string:

State is written using the set() method. To write a state value, just provide the key and the value.

🇮🇳India jeetmail72 Noida

@vinaymahale I set the latest as the default branch.
@apaderno I fixed the issues as you mentioned in the comments. I used the custom table to keep the configuration independent but in the future, I will use Config Entity instead of the custom table.

🇮🇳India jeetmail72 Noida

@Bhupesh, The changes are committed.

🇮🇳India jeetmail72 Noida

@netsliver, The module is already compatible with Drupal 10. Please download latest version.

🇮🇳India jeetmail72 Noida

Please review and grant the security advisory policy.

🇮🇳India jeetmail72 Noida

Hi apaderno,

Sorry for the delayed reply.
Please find the branch name: 10.0.x

🇮🇳India jeetmail72 Noida

msn5158 you can create custom tokens and use them.

🇮🇳India jeetmail72 Noida

Please update once it is fixed and working.

🇮🇳India jeetmail72 Noida

Correct the namespace of ContentEntityBase class

Drupal\Core\Config\Entity\ContentEntityBase

To

Drupal\Core\Entity\ContentEntityBase

Production build 0.71.5 2024