SysLog::$parser

The message's placeholders parser. Type: \Drupal\Core\Logger\LogMessageParserInterface File core/modules/syslog/src/Logger/SysLog.php, line 28 Class SysLog Redirects logging messages to syslog. Namespace Drupal\syslog\Logger Code protected $parser;

SysLog::$connectionOpened

Stores whether there is a system logger connection opened or not. Type: bool File core/modules/syslog/src/Logger/SysLog.php, line 35 Class SysLog Redirects logging messages to syslog. Namespace Drupal\syslog\Logger Code protected $connectionOpened = FALSE;

SysLog::log

public SysLog::log($level, $message, array $context = array()) Logs with an arbitrary level. Parameters mixed $level: string $message: array $context: Return value null Overrides RfcLoggerTrait::log File core/modules/syslog/src/Logger/SysLog.php, line 66 Class SysLog Redirects logging messages to syslog. Namespace Drupal\syslog\Logger Code public function log($level, $message, array $context = array()) { global $base_url; // Ensure we have a connection available. $this->ope

SysLog

Redirects logging messages to syslog. Hierarchy class \Drupal\syslog\Logger\SysLog implements LoggerInterface uses RfcLoggerTrait File core/modules/syslog/src/Logger/SysLog.php, line 13 Namespace Drupal\syslog\Logger Members Name Modifiers Type Description RfcLoggerTrait::alert public function Action must be taken immediately. Overrides LoggerInterface::alert RfcLoggerTrait::critical public function Critical conditions. Overrides LoggerInterface::critical RfcLo

SysLog::openConnection

protected SysLog::openConnection() Opens a connection to the system logger. File core/modules/syslog/src/Logger/SysLog.php, line 53 Class SysLog Redirects logging messages to syslog. Namespace Drupal\syslog\Logger Code protected function openConnection() { if (!$this->connectionOpened) { $facility = $this->config->get('facility'); if ($facility === '') { $facility = defined('LOG_LOCAL0') ? LOG_LOCAL0 : LOG_USER; } $this->connectionOpened = openlog($t

SwitchShortcutSet::validateForm

public SwitchShortcutSet::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormBase::validateForm File core/modules/shortcut/src/Form/SwitchShortcutSet.php, line 157 Class SwitchShortcutSet Builds the shortcut set switch form. Namespace Drupal\shortcut\Form Code public functi

SwitchShortcutSet::__construct

public SwitchShortcutSet::__construct(ShortcutSetStorageInterface $shortcut_set_storage) Constructs a SwitchShortcutSet object. Parameters \Drupal\shortcut\ShortcutSetStorageInterface $shortcut_set_storage: The shortcut set storage. File core/modules/shortcut/src/Form/SwitchShortcutSet.php, line 37 Class SwitchShortcutSet Builds the shortcut set switch form. Namespace Drupal\shortcut\Form Code public function __construct(ShortcutSetStorageInterface $shortcut_set_storage) { $this->

SwitchShortcutSet::submitForm

public SwitchShortcutSet::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::submitForm File core/modules/shortcut/src/Form/SwitchShortcutSet.php, line 169 Class SwitchShortcutSet Builds the shortcut set switch form. Namespace Drupal\shortcut\Form Code public funct

SwitchShortcutSet::getFormId

public SwitchShortcutSet::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/shortcut/src/Form/SwitchShortcutSet.php, line 53 Class SwitchShortcutSet Builds the shortcut set switch form. Namespace Drupal\shortcut\Form Code public function getFormId() { return 'shortcut_set_switch'; }

SwitchShortcutSet::create

public static SwitchShortcutSet::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The servic