Commit 243c3704 authored by Máté Havelant's avatar Máté Havelant Committed by szato
Browse files

Issue #3187251 by mhavelant, Kosa Ilma: The Exception Mailer Exclude entity...

Issue #3187251 by mhavelant, Kosa Ilma: The Exception Mailer Exclude entity type needs to be installed
parent 5d112d7f
Loading
Loading
Loading
Loading
+38 −0
Original line number Diff line number Diff line
<?php

/**
 * @file
 * Contains installation, uninstallation, and update functionality.
 */

use Drupal\Core\Config\Entity\ConfigEntityType;
use Drupal\Core\StringTranslation\TranslatableMarkup;

/**
 * Install the exception_mailer_exclude config entity type.
 */
function exception_mailer_update_8301() {
  \Drupal::entityDefinitionUpdateManager()->installEntityType(new ConfigEntityType([
    'id' => 'exception_mailer_exclude',
    'label' => new TranslatableMarkup('Exception Mailer Exclude'),
    'config_prefix' => 'exception',
    'admin_permission' => 'administer exception_mailer excludes',
    'label_callback' => 'getLabelFromPlugin',
    'entity_keys' => ['id' => 'id'],
    'config_export' => [
      'id',
      'label',
      'type',
      'exception',
      'error_type',
      'error_severity',
      'message',
      'hostname',
      'send_interval',
      'send_email',
      'emails',
      'roles',
      'email_body',
    ],
  ]));
}
+16 −0
Original line number Diff line number Diff line
@@ -33,6 +33,22 @@ use Drupal\exception_mailer\Utility\UserRepository;
 *     "id" = "id",
 *     "label" = "label"
 *   },
 *   config_export = {
 *     "id",
 *     "label",
 *     "description",
 *     "type",
 *     "exception",
 *     "error_type",
 *     "error_severity",
 *     "message",
 *     "hostname",
 *     "send_email",
 *     "emails",
 *     "roles",
 *     "email_body",
 *     "send_interval"
 *   },
 *   links = {
 *     "add-form" = "/admin/config/exception-mailer/excludes/add",
 *     "edit-form" = "/admin/config/exception-mailer/excludes/{exception_mailer_exclude}",