blob: 2aa41afe813cd854812d996f7ff628d903895942 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?php
/**
* @file
* Install, update and uninstall functions for the media_library module.
*/
use Drupal\media\Entity\MediaType;
/**
* Implements hook_install().
*/
function media_library_install($is_syncing): void {
if (!$is_syncing) {
foreach (MediaType::loadMultiple() as $type) {
_media_library_configure_form_display($type);
_media_library_configure_view_display($type);
}
}
}
/**
* Implements hook_update_last_removed().
*/
function media_library_update_last_removed(): int {
return 8704;
}
|