Enabling context in a panel plugin 17/02/2016 Leandro Luvigne Backend Developer In Drupal 7: /** * Plugin definition. */ $plugin = array( 'title' => t('TITLE'), 'category' => t('CATEGORY'), 'render callback' => 'callback_render_function', 'all contexts' => TRUE, // Enables the context of the panel );
Contexts Modifying weight blocks in context Pepe García How modify weight blocks in context, useful when two contexts execute in the same route. Read article Modifying weight blocks in context La Drupalera José García García
Forms How to render a form programmatically in Drupal 8? José Antonio Rodríguez Carvajal The purpose of this Drupal 8’s snippet is to learn how to render a form programmatically in Drupal 8. Read article How to render a form programmatically in Drupal 8? La Drupalera jacarvajal
Entities Alter the presentation (view mode) of an entity in its preview Pepe García This is how to modify the presentation (view mode) of an entity according to the conditions that we need through the implementation of a hook_entity_view_mode_alter. Read article Alter the presentation (view mode) of an entity in its preview La Drupalera José García García