HTTP Basic Authentication for RESTful Web Services

This is a plain copy/paste job of the README file from the restws_basic_auth submodule of the RESTful Web Services for Drupal (restws) module.

version 7.x-2.x

--------------------------------------------------------------------------------
HTTP Basic Authentication for RESTful Web Services
--------------------------------------------------------------------------------

Drupal 8 force logout a user

In Drupal 7 there is a function drupal_session_destroy_uid that helps the developer to force a specific user's session(s) to be destroyed and logged out.

In Drupal 8, this code is working fine

How to add Custom css class to Menu

Code hacks to change menu theme .. suppose we are customizing the design for "front" custom menu

1. Update outer structure by hook


function mytheme_menu_tree__menu_front(&$variables) {
     
    return '<ul class="links inline clearfix">' . $variables['tree'] . '</ul>';
}

2. To Add new css to li

D8: Mapping IdP attributes to user entity fields

The following code is the hook provided by the D8 version of the module to map IdP attributes to user object fields.

Drupal - PHP version compatibility check

When we are upgrading PHP version or switching from one hosting to another hosting provider, we may need to check the PHP version compatibility. We can check the compatibility with PHP codesniffer. It will provide you the warnings or errors while checking the compatibility. Below document will help us to do the compatibility check.

Pre requisites:

Pages

Subscribe with RSS Subscribe to RSS - Programmers