_dblog_get_message_types

_dblog_get_message_types() Gathers a list of uniquely defined database log message types. Return value array List of uniquely defined database log message types. File core/modules/dblog/dblog.module, line 89 System monitoring and logging for administrators. Code function _dblog_get_message_types() { return db_query('SELECT DISTINCT(type) FROM {watchdog} ORDER BY type') ->fetchAllKeyed(0, 0); }

FieldItemListInterface::filterEmptyItems

public FieldItemListInterface::filterEmptyItems() Filters out empty field items and re-numbers the item deltas. Return value $this File core/lib/Drupal/Core/Field/FieldItemListInterface.php, line 97 Class FieldItemListInterface Interface for fields, being lists of field items. Namespace Drupal\Core\Field Code public function filterEmptyItems();

UserData::__construct

public UserData::__construct(Connection $connection) Constructs a new user data service. Parameters \Drupal\Core\Database\Connection $connection: The database connection to use. File core/modules/user/src/UserData.php, line 25 Class UserData Defines the user data service. Namespace Drupal\user Code public function __construct(Connection $connection) { $this->connection = $connection; }

dblog.module

System monitoring and logging for administrators. The Database Logging module monitors your site and keeps a list of recorded events containing usage and performance data, errors, warnings, and similar operational information. File core/modules/dblog/dblog.module Functions Name Description dblog_cron Implements hook_cron(). dblog_form_system_logging_settings_alter Implements hook_form_FORM_ID_alter() for system_logging_settings(). dblog_help Implements hook_help(). dblog_log

PathRootsSubscriber::$pathRoots

Stores the path roots available in the router. A path root is the first virtual directory of a path, like 'admin', 'node' or 'user'. Type: array File core/lib/Drupal/Core/EventSubscriber/PathRootsSubscriber.php, line 23 Class PathRootsSubscriber Provides all available first bits of all route paths. Namespace Drupal\Core\EventSubscriber Code protected $pathRoots = [];

UserSession::getPreferredLangcode

UserSession::getPreferredLangcode($fallback_to_default = TRUE) Returns the preferred language code of the account. Parameters bool $fallback_to_default: (optional) Whether the return value will fall back to the site default language if the user has no language preference. Return value string The language code that is preferred by the account. If the preferred language is not set or is a language not configured anymore on the site, the site default is returned or an empty string is returned (i

Cron::$moduleHandler

The module handler service. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/lib/Drupal/Core/Cron.php, line 27 Class Cron The Drupal core Cron service. Namespace Drupal\Core Code protected $moduleHandler;

ContentEntityBase::updateOriginalValues

public ContentEntityBase::updateOriginalValues() Updates the original values with the interim changes. File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 872 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function updateOriginalValues() { if (!$this->fields) { return; } foreach ($this->getFieldDefinitions() as $name => $definition) { if (!$definition->isComputed(

LocalActionInterface::getTitle

public LocalActionInterface::getTitle() Returns the localized title to be shown for this action. Subclasses may add optional arguments like NodeInterface $node = NULL that will be supplied by the ControllerResolver. Return value string The title to be shown for this action. See also \Drupal\Core\Menu\LocalActionManager::getTitle() File core/lib/Drupal/Core/Menu/LocalActionInterface.php, line 60 Class LocalActionInterface Defines an interface for menu local actions. Namespace Drupal\Co

Schema::createTableSql

protected Schema::createTableSql($name, $table) Generate SQL to create a new table from a Drupal schema definition. Parameters $name: The name of the table to create. $table: A Schema API table definition array. Return value An array of SQL statements to create the table. File core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php, line 221 Class Schema PostgreSQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\pgsql Code protected function create