admin display improvements
This commit is contained in:
@@ -23,3 +23,15 @@ function materio_admin_field_widget_single_element_form_alter(array &$element, \
|
||||
$element['#attached']['library'][] = 'materio_admin/term_reference_tree';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_page_attachments().
|
||||
*
|
||||
* Loads the general admin table styling on every admin route (compact
|
||||
* paddings + constrained widths, replacing the old matminimal rules).
|
||||
*/
|
||||
function materio_admin_page_attachments(array &$attachments) {
|
||||
if (\Drupal::service('router.admin_context')->isAdminRoute()) {
|
||||
$attachments['#attached']['library'][] = 'materio_admin/admin_tables';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user