tooltip_taxonomy.install in Tooltip Taxonomy 8
File
tooltip_taxonomy.install
View source
<?php
function tooltip_taxonomy_update_8101() {
$config_factory = \Drupal::configFactory();
$filters = $config_factory
->listAll('filter');
if ($filters) {
foreach ($filters as $filter) {
$filter_setting = $config_factory
->getEditable($filter);
if ($filter_setting) {
$allowed_html = $filter_setting
->get('filters.filter_html.settings.allowed_html');
if ($allowed_html) {
$allowed_html = str_replace('<span class="tooltip tooltiptext">', '<span class="tx-tooltip tx-tooltip-text">', $allowed_html);
$filter_setting
->set('filters.filter_html.settings.allowed_html', $allowed_html);
$filter_setting
->save(TRUE);
}
}
}
}
}