By editor, 10 February, 2017 Load entity dynamicly by entity type on Drupal 8 Tags Drupal 8 Code Entity Using entity_load function. Example: $entity = entity_load($entity_type, $id); Using Entity Manager Example: $entity = \Drupal::entityTypeManager()->getStorage($entity_type)->load($id);
By editor, 9 February, 2017 Create interactive shell script. Prompt for Yes / No input Tags Linux Shell Prompt for Yes/No/Cancel input in a Linux shell / bash script Example: #!/bin/bash echo "This script will ask a question.";
By editor, 31 January, 2017 Change the states of an element based on another element (field) Tags Drupal 8 Code Field Note : The tutorial is usins States VISIBLE, but can also use for other html parameters such as : REQUIRED, EXPENDED, CHECKED ... The selector is an "JQUERY_SELECTOR"
By editor, 18 January, 2017 Use multiple databases on drupal 8 Tags Drupal 8 Code Database Move some tables into another database. Example:
By editor, 18 January, 2017 Create an advances Search system for Drupal 8 with Search API. Tags Drupal 8 Search Module Search API and Database Search server. 1. Uninstall drupal basic Search 2. Install search_api and search_api_db NOTE : You can also use another database configures on settings.php 3. Add a Search Server (/admin/config/search/search-api/add-server).