You are here

function layout_builder_restrictions_update_8210 in Layout Builder Restrictions 8.2

Notes on update for multilingual sites.

File

./layout_builder_restrictions.install, line 84
Contains install and update functions for Layout Builder Restrictions.

Code

function layout_builder_restrictions_update_8210() {
  $moduleHandler = \Drupal::service('module_handler');
  if ($moduleHandler
    ->moduleExists('locale')) {
    $message = t("Please note: since your site uses the Locale module, you will likely need to manually resave each Layout Builder Restriction entity configuration, due to new code that makes Layout Builder Restrictions' configuration multilingual compatible. For more information, see <a href='https://www.drupal.org/project/layout_builder_restrictions/releases/8.x-2.6'>Layout Builder Restrictions version 2.6 release notes</a>.");
    \Drupal::logger('layout_builder_restrictions')
      ->warning($message);
    return $message;
  }
}