Commit 72f1ec30 authored by Vatsal Khanna's avatar Vatsal Khanna Committed by mark-casias
Browse files

Issue #3139291 by vatsalkhanna, JayKandari: Drupal 9 Readiness

parent c4a4d1f3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
name: LiveChat
type: module
description: LiveChat – Adds LiveChat to your website, allowing you to create a Customer Support for your customers.
description: Adds LiveChat to your website, allowing you to create a Customer Support for your customers.
package: Utility
configure: livechat.settings
version: '8.x'
core: '8.x'
core_version_requirement: ^8 || ^9
project: 'livechat'
+3 −1
Original line number Diff line number Diff line
@@ -5,6 +5,8 @@
 * Installation file for the LiveChat module.
 */

use Drupal\Core\Url;

/**
 * Implements hook_requirements().
 */
@@ -14,7 +16,7 @@ function livechat_requirements($phase) {
  if ($phase == 'runtime' && !(\Drupal::config('livechat.settings')->get('licence_number', FALSE))) {
    $requirements['livechat'] = [
      'title' => t('LiveChat module'),
      'description' => t('LiveChat module has not been configured yet. Please configure its settings from the <a href=":url">LiveChat settings page</a>.', [':url' => \Drupal::url('livechat.settings')]),
      'description' => t('LiveChat module has not been configured yet. Please configure its settings from the <a href=":url">LiveChat settings page</a>.', [':url' => Url::fromRoute('livechat.settings')]),
      'severity' => REQUIREMENT_ERROR,
      'value' => t('Not configured'),
    ];