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.
*/
/**
* Installs the text_with_summary module when text_with_summary fields exist.
*/
function text_update_11001() : void {
if (\Drupal::moduleHandler()->moduleExists('text_with_summary')) {
return;
}
$storage_ids = \Drupal::entityQuery('field_storage_config')->accessCheck(FALSE)
->condition('type', 'text_with_summary')
->execute();
if ($storage_ids !== []) {
\Drupal::service('module_installer')->install([
'text_with_summary',
]);
}
}
Functions
| Title | Deprecated | Summary |
|---|---|---|
| text_update_11001 | Installs the text_with_summary module when text_with_summary fields exist. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.