element_class_formatter.install in Element Class Formatter 8
Install, update and uninstall functions for the Element class formatter module.
File
element_class_formatter.installView source
<?php
/**
* @file
* Install, update and uninstall functions for the Element class formatter module.
*/
/**
* Enable new responsive image submodule.
*/
function element_class_formatter_update_8001() {
if (\Drupal::service('module_handler')
->moduleExists('responsive_image')) {
\Drupal::service('module_installer')
->install([
'element_class_formatter_responsive_image',
]);
}
}
Functions
Name | Description |
---|---|
element_class_formatter_update_8001 | Enable new responsive image submodule. |