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

toolbar.module

Administration toolbar for quick access to top level administration items. File core/modules/toolbar/toolbar.module Functions Name Description template_preprocess_toolbar Prepares variables for administration toolbar templates. toolbar_get_rendered_subtrees Returns the rendered subtree of each top-level toolbar link. toolbar_help Implements hook_help(). toolbar_menu_navigation_links Adds toolbar-specific attributes to the menu link tree. toolbar_page_top Implements hoo

drupal_check_profile

drupal_check_profile($profile) Checks an installation profile's requirements. Parameters string $profile: Name of installation profile to check. Return value array Array of the installation profile's requirements. File core/includes/install.inc, line 931 API functions for installing modules and themes. Code function drupal_check_profile($profile) { $info = install_profile_info($profile); // Collect requirement testing results. $requirements = array(); // Performs an ExtensionDiscove

BookManager::bookTreeCheckAccess

public BookManager::bookTreeCheckAccess(&$tree, $node_links = array()) Checks access and performs dynamic operations for each link in the tree. Parameters array $tree: The book tree you wish to operate on. array $node_links: A collection of node link references generated from $tree by menu_tree_collect_node_links(). Overrides BookManagerInterface::bookTreeCheckAccess File core/modules/book/src/BookManager.php, line 929 Class BookManager Defines a book manager. Namespace Drupal\book

ConfigBase

Provides a base class for configuration objects with get/set support. Encapsulates all capabilities needed for runtime configuration handling for a specific configuration object. Extend directly from this class for non-storable configuration where the configuration API is desired but storage is not possible; for example, if the data is derived at runtime. For storable configuration, extend \Drupal\Core\Config\StorableConfigBase. Hierarchy class \Drupal\Core\Config\ConfigBase implements Refinabl

KeyValueEntityStorage::save

public KeyValueEntityStorage::save(EntityInterface $entity) Saves the entity permanently. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity to save. Return value SAVED_NEW or SAVED_UPDATED is returned depending on the operation performed. Throws \Drupal\Core\Entity\EntityStorageException In case of failures, an exception is thrown. Overrides EntityStorageBase::save File core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueEntityStorage.php, line 151 Class KeyValueEntityStor

View::createDuplicate

public View::createDuplicate() Creates a duplicate of the entity. Return value static A clone of $this with all identifiers unset, so saving it inserts a new entity into the storage system. Overrides ConfigEntityBase::createDuplicate File core/modules/views/src/Entity/View.php, line 132 Class View Defines a View configuration entity class. Namespace Drupal\views\Entity Code public function createDuplicate() { $duplicate = parent::createDuplicate(); unset($duplicate->executable)

EntityRevisionConverter::convert

public EntityRevisionConverter::convert($value, $definition, $name, array $defaults) Converts path variables to their corresponding objects. Parameters mixed $value: The raw value. mixed $definition: The parameter definition provided in the route options. string $name: The name of the parameter. array $defaults: The route defaults array. Return value mixed|null The converted parameter value. Overrides EntityConverter::convert File core/modules/content_moderation/src/ParamConverter/EntityRevis

UpdateManager::refreshUpdateData

public UpdateManager::refreshUpdateData() Clears out all the available update data and initiates re-fetching. Overrides UpdateManagerInterface::refreshUpdateData File core/modules/update/src/UpdateManager.php, line 100 Class UpdateManager Default implementation of UpdateManagerInterface. Namespace Drupal\update Code public function refreshUpdateData() { // Since we're fetching new available update data, we want to clear // of both the projects we care about, and the current update

AuthenticationSubscriber::$accountProxy

Account proxy. Type: \Drupal\Core\Session\AccountProxyInterface File core/lib/Drupal/Core/EventSubscriber/AuthenticationSubscriber.php, line 49 Class AuthenticationSubscriber Authentication subscriber. Namespace Drupal\Core\EventSubscriber Code protected $accountProxy;