Drupal Interview

Also Read: Interview- Points to remember

DRUPAL GENERAL:
  • System Requirements D7/8?
    • D7 PHP 5.2.5+, MySQL 5.0.15+
    • D8 PHP 5.5.9, MySQL 5.5.3 (No support for IE9/10)
    • D8.5 PHP 7.1+
    • In Architecture?
  • Core Modules 7/8?
  • Explain Drupal Architecture?
  • What is new in Drupal 8?
  • What are Drupal Distributions? (Open Atrium)
  • Upgrading/Updating Drupal
  • Content Migration [Feeds Module]
  • Configuration Migration [Features Module]
  • Put site on maintenance mode?
  • Cron and Queue Operations?
  • Batch API and implementation?
  • Form API(FAPI) and implementation?
  • How to add additional theme settings using the Drupal Form API?
  • Function system_settings_form($form);
  • What is HOOK? (Explain in terms of TIMELINE)
  • How you debug? dsm() dpm() functions, Xdebug
  • How Search in drupal and external search engine?
  • Explain Database abstraction layer in Drupal?
  • Create restful services?
  • Entity API?
  • Creating custom entity?
  • What are bundles?
  • Difference Entity API/Bundle/Entity?
  • Drupal plugins?
  • How SEARCH works?Apache Solr, Xapier, Sphinx?
  • How caching works?MemCache?Varnish?APC(Alternative PHP Cache)?
  • Why not to cache blocks?
  • How to reduce spamming?
  • Create multisite using same Drupal code?
  • Create multilingual site?
  • Static Queries
  • Dynamic Queries
  • Drupal services API?
  • What is CRUD? (Create, Retrieve, Update, Delete)
  • Incorporating external libraries with Libraries API?
  • Drupal Trigger?
  • Send email? Hook_mail()
  • Managing Drupal coding standards? And Sonar?
  • Searchengine optimization(SEO) tools
BASIC HOOK IMPLEMENTATIONS:
  • hook_schema()
  • hook_install()
  • hook_uninstall()
  • hook_update_N(&$sandbox)
  • hook_init()
  • hook_cron()
  • hook_cron_queue_info()
  • hook_libraries_info()
  • hook_mail($key, &$message, $params)
  • hook_menu()
  • hook_permission()
  • hook_theme($existing, $type, $theme, $path)

  • hook_form_alter(&$form, &$form_state, $form_id)
  • hook_form_FORM_ID_alter(&$form, &$form_state, $form_id)
  • hook_query_TAG_alter($query)
  • hook_page_alter(&$page)
  • hook_js_alter(&$javascript)
  • hook_css_alter(&$css)
  • hook_html_head_alter(&$head_elements)
  • hook_module_implements_alter(&$implementations, $hook)
  • hook_menu_local_tasks_alter(&$data, $router_item, $root_path)

  • hook_block_info()
  • hook_block_view($delta = '')
  • hook_block_list_alter(&$blocks)

  • hook_node_insert($node)
  • hook_user_insert(&$edit, $account, $category)
  • hook_entity_presave($entity, $type)

  • hook_views_api()
  • hook_views_data()
  • hook_views_query_alter(&$view, &$query)

  • hook_process_html(&$variables)
  • hook_process_page(&$variables)
  • hook_process_region(&$variables)
  • hook_process_node(&$variables)
  • hook_process_block(&$variables)
  • hook_process_comment(&$variables)
  • hook_process_maintenance_page(&$variables)

  • hook_preprocess(&$variables)
  • hook_preprocess_html(&$variables)
  • hook_preprocess_page(&$variables)
  • hook_preprocess_region(&$variables)
  • hook_preprocess_node(&$variables)
  • hook_preprocess_block(&$variables)
  • hook_preprocess_field(&$variables)
  • hook_preprocess_comment(&$variables)
  • hook_preprocess_username(&$variables)
  • hook_preprocess_breadcrumb(&$variables)

  • hook_preprocess_views_view(&$variables)
  • hook_preprocess_views_view_table(&$variables)
  • hook_preprocess_views_view_unformatted(&$variables)
hook_preprocess_comment(&$variables) (Preprocess variables for *.tpl.php) hook_preprocess_image(&$variables) (Preprocess variables for theme_image()) theme_image is like 'image' key theme ki definition, isko agar override krna h to mythemename_image()

Comments

  1. E-commerce and its components

    ReplyDelete
  2. Contribution to the community?

    ReplyDelete
  3. Mobile First approach?

    ReplyDelete
  4. MD v/s TXT https://en.wikipedia.org/wiki/Markdown

    ReplyDelete

Post a Comment

Drupal Contribution
Git Commands
RESTful Services
Lando Commands
Docker Commands
MySQL
Database Quick Code
Drush Commands
Drupal Console
PHP Quick Code
Drupal Quick Code
Composer Commands
Linux Commands
Linux Shell Scripting
Drupal Hooks
Twig Tricks
PHPUnit Test
PhpMyAdmin
Drupal Constants
CSS Clues
BLT Commands
Vagrant Commands
Localhost
127.0.0.1
Drupal Interview
Drupal Certifications
Concept & Definitions
Mac Tips
Windows Tips
Browser Tips

Best Practice

Use 'elseif' instead of 'else if'
#CodingTips

As of PHP 5.4 you can also use the short array syntax, which replaces array() with []
#CodingTips

Functions in general shall be named using snake_case(say, my_function()), and using camelCase(say, myFunction()) when declared within a plugin class
#CodingTips

Variables in general shall be named using snake_case(say, $my_variable), and using camelCase(say, $myVariable) when declared within a plugin class
#CodingTips

Manage automatically assigning of new permissions whenever a module is enabled here- admin/config/people/accounts
#ConfigurationTips

Manage source of Main-menu and User-menu links here- admin/structure/menu/settings
#ConfigurationTips

Helper function(s) shall be named prefixing an underscore(say, _my_helper_function()), which can prevent hooks from being called
#CodingTips

Ideally, configuring of 'Private file system path' at admin/config/media/file-system should be located outside of your Drupal root folder(say, ../my_private_files)
#ConfigurationTips

You should be aware that uploading files as 'Private file' will slow down the process of loading the files as Drupal has to be bootstrapped for every file that needs to be downloaded
#ConfigurationTips #BeAware

Code should always be pushed up(dev -> staging -> production) and databases should only be pushed down(production -> staging -> dev)
#DevelopmentTips

Get Raw SQL Query of drupal dynamic queries before executing it using $query->__toString();
#DebugTips

In VI-Editor, Press ESC key to come in command mode and for undo type :U and for redo type :Ctrl+R
#LinuxTips

Insert queries must always use a query builder object(layer of abstraction), allowing individual database drivers special handling for column values (if applicable), example case for LOB and BLOB fields.
#DatabaseQueryTips

Drupal uses the .inc extension to prevent files from being executed directly.
#DevelopmentTips

Popular Posts