text.install
Same filename and directory in other branches
Install functions for the text module.
File
-
core/
modules/ text/ text.install
View source
<?php
/**
* @file
* Install functions for the text module.
*/
/**
* Install text_with_summary module.
*/
function text_update_11001() : void {
if (\Drupal::moduleHandler()->moduleExists('text_with_summary')) {
return;
}
$storages = \Drupal::entityTypeManager()->getStorage('field_storage_config')
->loadByProperties([
'type' => 'text_with_summary',
]);
if ($storages !== []) {
\Drupal::service('module_installer')->install([
'text_with_summary',
]);
}
}
Functions
| Title | Deprecated | Summary |
|---|---|---|
| text_update_11001 | Install text_with_summary module. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.