You are here

function template_preprocess_unwrapped_container in Open Social 8.4

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_user/social_user.module \template_preprocess_unwrapped_container()
  2. 8.5 modules/social_features/social_user/social_user.module \template_preprocess_unwrapped_container()
  3. 8.6 modules/social_features/social_user/social_user.module \template_preprocess_unwrapped_container()
  4. 8.7 modules/social_features/social_user/social_user.module \template_preprocess_unwrapped_container()
  5. 8.8 modules/social_features/social_user/social_user.module \template_preprocess_unwrapped_container()
  6. 10.3.x modules/social_features/social_user/social_user.module \template_preprocess_unwrapped_container()
  7. 10.0.x modules/social_features/social_user/social_user.module \template_preprocess_unwrapped_container()
  8. 10.1.x modules/social_features/social_user/social_user.module \template_preprocess_unwrapped_container()
  9. 10.2.x modules/social_features/social_user/social_user.module \template_preprocess_unwrapped_container()

Prepares variables for unwrapped container templates.

Default template: unwrapped-container.html.twig.

Parameters

array $variables: An associative array containing:

  • element: An associative array containing the properties of the element. Properties used: #id, #attributes, #children.

See also

\template_preprocess_container()

File

modules/social_features/social_user/social_user.module, line 315
The social user module alterations.

Code

function template_preprocess_unwrapped_container(array &$variables) {

  // The UnwrappedContaienr element exists to provide a different template from
  // the container which is used by the AccountHeaderElement which is why we the
  // original container implementation works fine for us. The div is then simply
  // not added in the template.
  template_preprocess_container($variables);
}