You are here

function media_entity_install in Media entity 8

Implements hook_install().

File

./media_entity.install, line 61
Install, uninstall and update hooks for Media entity module.

Code

function media_entity_install() {
  $source = drupal_get_path('module', 'media_entity') . '/images/icons';
  $destination = \Drupal::config('media_entity.settings')
    ->get('icon_base');
  media_entity_copy_icons($source, $destination);
}