By editor, 2 December, 2015 Create taxonomy term programmatically on Drupal 8 Tags Drupal 8 Taxonomy Code Example : Create a terom of the vocabulary 'test_vocabulary'
By editor, 1 December, 2015 Get all languas of the site in Drupal 8 Tags Drupal 8 Code Translation To get languages in English: $site_languages = \Drupal::languageManager()->getLanguages(); To get languages in native language: $site_languages = \Drupal::languageManager()->getNativeLanguages();
By editor, 1 December, 2015 Download a file from URL Tags Drupal 8 Code Example: $url = "http://domain.ext/filename.txt"; $result = system_retrieve_file($url, $destination = NULL, $managed = FALSE, $replace = FILE_EXISTS_REPLACE);
By editor, 28 November, 2015 Create and translate a multilingual nodes programmatically. Tags Drupal 8 Code Translation Node Programmatically create and translate nodes.
By editor, 28 November, 2015 Create and translate menu links in Drupal 8 Tags Drupal 8 Code Programmatically create and translate menu links.
By editor, 28 November, 2015 Translate a node programmatically Tags Drupal 8 Code Translation Node Exemples: $translation = $entity->getTranslation('de');
By editor, 28 November, 2015 Database Merge, Insert or Update if exist. Tags Drupal 8 Database Merge SQL data base: Insert field or update if exist
By editor, 28 November, 2015 Get the user IP address : REMOTE_ADDR Tags Drupal 8 Code User Drupal do not like using the $_SERVER['REMOTE_ADDR']; to get the remote ip (the user ip address). In Drupal 7, the function ip_address() exist but not in D8. $ip = ip_address();
By editor, 27 November, 2015 Develop drupal modules using Netbeans IDE Tags Drupal 8 Drupal 7 IDE You can easily intergrate drupal coding standards, files extention using following file. Netbeans Config.zip On netbeans, Goto : Tools->Options