Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. syslog.install

function syslog_install

Implements hook_install().

File

core/modules/syslog/syslog.install, line 11

Code

function syslog_install() : void {
    // The default facility setting depends on the operating system, so it needs
    // to be set dynamically during installation.
    \Drupal::configFactory()->getEditable('syslog.settings')
        ->set('facility', defined('LOG_LOCAL0') ? LOG_LOCAL0 : LOG_USER)
        ->save();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal