Quantcast
Channel: day to day activity
Browsing all 16 articles
Browse latest View live

Disabling clean URLs through drush

drush vset clean_url 0 –yes

View Article



Permission Configuration setup using YML

Purpose: Get content of the file through YML class YmlPermissionSetup { /** * Get permission setting provided through parser file * @return [type] [description] */ public function getPermissions() {...

View Article

Reusability of already created class instance

Often in order to use a class method, we create instance at each usage location. In this way objects are created again and again result in performance degradation. /** * Create instance of a class. *...

View Article

Migration and old url management

In order to maintain old urls post migration, tables associated with migration provide information relating to old ids and new drupal ids. Please fidn below excerise which may help out to understand...

View Article

Perform task in batch

define('BULK_PUBLISH_DESTINATION_BATCH_OPERATION', 'admin/content'); define('BULK_PUBLISH_CONTENT_LIMIT', variable_get('bulk_publish_content_limit', 20)); $entity_list = array('100', '101');...

View Article


D8 links

Config section

View Article

Configure Real url in Drupal 8

Go to the folder /etc/apache2/sites-enabled Add an entry Restart the Apache sudo service apache2 restart

View Article

Configure netbeans drupal specific

Setting up Drupal-specific file extensions and Drupal core functions https://www.drupal.org/docs/develop/development-tools/configuring-netbeans

View Article


Preparing source database data

View Article


Migration : making drupal database connection

target/key : The name specified is responsible for the database connection. In the settings.php it holds the connection information for the source database. source: # The "key" here refers to the...

View Article

Get latitude longitude in drupal 8 based on city or zipcode

Geolocation provides latitude and longitude information. In order to search based on these values, when zipcode or city name is passed to this function, data is returned comma separated. $lat_lan =...

View Article

Make distance solr search in miles in Drupal 8

If you need to do the solr distance search based on the city or the zipcode, latitude and longitude needs to be passed to the solr in query filter query (fq). With geofilt sfiled describes the indexed...

View Article

Update multi dimensional data in the form in drupal 8

Case: update certain form field value during validation. $form[‘latlon’][‘value’] = 110001; $form[‘latlon’][‘distance’][‘from’][‘#default_value’] = 100 and need to change it to 200 during validation....

View Article


Add a controller: get duplicate term and associated nodes

A.Define path File path: custom/custom_core/custom_core.routing.yml custom_core.node_count_by_vid: path: '/duplicate/nodes/{vid}' defaults: _controller:...

View Article

Event System

Events Events in Drupal 8 allow various system components to interact and communicate with one another while remaining independent, or decoupled. The event system is built on the “Symfony event...

View Article


Find list of all events

drupal debug:event

View Article
Browsing all 16 articles
Browse latest View live




Latest Images