Loading exception_mailer.install 0 → 100644 +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', ], ])); } src/Entity/ExceptionMailerExclude.php +16 −0 Original line number Diff line number Diff line Loading @@ -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}", Loading Loading
exception_mailer.install 0 → 100644 +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', ], ])); }
src/Entity/ExceptionMailerExclude.php +16 −0 Original line number Diff line number Diff line Loading @@ -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}", Loading