WriteSafeSessionHandlerInterface

Provides an interface for session handlers where writing can be disabled. Hierarchy interface \Drupal\Core\Session\WriteSafeSessionHandlerInterface File core/lib/Drupal/Core/Session/WriteSafeSessionHandlerInterface.php, line 8 Namespace Drupal\Core\Session Members Name Modifiers Type Description WriteSafeSessionHandlerInterface::isSessionWritable public function Returns whether or not a session may be written to storage. WriteSafeSessionHandlerInterface::setSessionWrit

Unicode::lcfirst

public static Unicode::lcfirst($text) Converts the first character of a UTF-8 string to lowercase. Parameters string $text: The string that will be converted. Return value string The string with the first character as lowercase. Related topics PHP wrapper functions Functions that are wrappers or custom implementations of PHP functions. File core/lib/Drupal/Component/Utility/Unicode.php, line 361 Class Unicode Provides Unicode-related conversions and operations. Namespace Drupal\Comp

ViewUI::enforceIsNew

public ViewUI::enforceIsNew($value = TRUE) Enforces an entity to be new. Allows migrations to create entities with pre-defined IDs by forcing the entity to be new before saving. Parameters bool $value: (optional) Whether the entity should be forced to be new. Defaults to TRUE. Return value $this Overrides EntityInterface::enforceIsNew See also \Drupal\Core\Entity\EntityInterface::isNew() File core/modules/views_ui/src/ViewUI.php, line 1027 Class ViewUI Stores UI related temporary settin

EntityDisplayInterface::getComponent

public EntityDisplayInterface::getComponent($name) Gets the display options set for a component. Parameters string $name: The name of the component. Return value array|null The display options for the component, or NULL if the component is not displayed. File core/lib/Drupal/Core/Entity/Display/EntityDisplayInterface.php, line 45 Class EntityDisplayInterface Provides a common interface for entity displays. Namespace Drupal\Core\Entity\Display Code public function getComponent($name);

Unicode::mimeHeaderDecode

public static Unicode::mimeHeaderDecode($header) Decodes MIME/HTTP encoded header values. Parameters string $header: The header to decode. Return value string The mime-decoded header. File core/lib/Drupal/Component/Utility/Unicode.php, line 634 Class Unicode Provides Unicode-related conversions and operations. Namespace Drupal\Component\Utility Code public static function mimeHeaderDecode($header) { $callback = function($matches) { $data = ($matches[2] == 'B') ? base64_decode($

LibraryDiscoveryInterface::getLibraryByName

public LibraryDiscoveryInterface::getLibraryByName($extension, $name) Gets a single library defined by an extension by name. Parameters string $extension: The name of the extension that registered a library. string $name: The name of a registered library to retrieve. Return value array|false The definition of the requested library, if $name was passed and it exists, otherwise FALSE. File core/lib/Drupal/Core/Asset/LibraryDiscoveryInterface.php, line 46 Class LibraryDiscoveryInterface Dis

locale_translation_status_delete_projects

locale_translation_status_delete_projects($projects) Delete project entries from the status cache. Parameters array $projects: Project name(s) to be deleted from the cache. File core/modules/locale/locale.module, line 992 Enables the translation of the user interface to languages other than English. Code function locale_translation_status_delete_projects($projects) { $status = locale_translation_get_status(); foreach ($status as $project => $languages) { if (in_array($project, $p

StringStorageInterface::countStrings

public StringStorageInterface::countStrings() Counts source strings. Return value int The number of source strings contained in the storage. File core/modules/locale/src/StringStorageInterface.php, line 148 Class StringStorageInterface Defines the locale string storage interface. Namespace Drupal\locale Code public function countStrings();

NodeGrantDatabaseStorage::buildGrantsQueryCondition

protected static NodeGrantDatabaseStorage::buildGrantsQueryCondition(array $node_access_grants) Creates a query condition from an array of node access grants. Parameters array $node_access_grants: An array of grants, as returned by node_access_grants(). Return value \Drupal\Core\Database\Query\Condition A condition object to be passed to $query->condition(). See also node_access_grants() File core/modules/node/src/NodeGrantDatabaseStorage.php, line 293 Class NodeGrantDatabaseStorage

ActiveTheme::getLibraries

public ActiveTheme::getLibraries() Returns the libraries provided by the theme. Return value mixed File core/lib/Drupal/Core/Theme/ActiveTheme.php, line 170 Class ActiveTheme Defines a theme and its information needed at runtime. Namespace Drupal\Core\Theme Code public function getLibraries() { return $this->libraries; }