WriteSafeSessionHandlerInterface::setSessionWritable

public WriteSafeSessionHandlerInterface::setSessionWritable($flag) Sets whether or not a session may be written to storage. It is not possible to enforce writing of the session data. This method is only capable of forcibly disabling that session data is written to storage. Parameters bool $flag: TRUE if the session the session is allowed to be written, FALSE otherwise. File core/lib/Drupal/Core/Session/WriteSafeSessionHandlerInterface.php, line 20 Class WriteSafeSessionHandlerInterface Pr

MapDataDefinition::createFromDataType

public static MapDataDefinition::createFromDataType($data_type) Creates a new data definition object. This method is typically used by \Drupal\Core\TypedData\TypedDataManager::createDataDefinition() to build a definition object for an arbitrary data type. When the definition class is known, it is recommended to directly use the static create() method on that class instead; e.g.: $map_definition = \Drupal\Core\TypedData\MapDataDefinition::create(); Parameters string $data_type: The data type

StaticMenuLinkOverrides::encodeId

protected static StaticMenuLinkOverrides::encodeId($id) Encodes the ID by replacing dots with double underscores. This is done because config schema uses dots for its internal type hierarchy. Double underscores are converted to triple underscores to avoid accidental conflicts. Parameters string $id: The menu plugin ID. Return value string The menu plugin ID with double underscore instead of dots. File core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php, line 175 Class StaticMenuLinkOver

CacheCollector::lazyLoadCache

protected CacheCollector::lazyLoadCache() Loads the cache if not already done. File core/lib/Drupal/Core/Cache/CacheCollector.php, line 320 Class CacheCollector Default implementation for CacheCollectorInterface. Namespace Drupal\Core\Cache Code protected function lazyLoadCache() { if ($this->cacheLoaded) { return; } // The cache was not yet loaded, set flag to TRUE. $this->cacheLoaded = TRUE; if ($cache = $this->cache->get($this->getCid())) { $this-&g

EntityAutocompleteController::handleAutocomplete

public EntityAutocompleteController::handleAutocomplete(Request $request, $target_type, $selection_handler, $selection_settings_key) Autocomplete the label of an entity. Parameters \Symfony\Component\HttpFoundation\Request $request: The request object that contains the typed tags. string $target_type: The ID of the target entity type. string $selection_handler: The plugin ID of the entity reference selection handler. string $selection_settings_key: The hashed key of the key/value entry that ho

PhpStreamWrapperInterface::stream_tell

public PhpStreamWrapperInterface::stream_tell() Return value int File core/lib/Drupal/Core/StreamWrapper/PhpStreamWrapperInterface.php, line 193 Class PhpStreamWrapperInterface Defines a generic PHP stream wrapper interface. Namespace Drupal\Core\StreamWrapper Code public function stream_tell();

ViewExecutable::$current_display

Identifier of the current display. Type: string File core/modules/views/src/ViewExecutable.php, line 180 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public $current_display;

KeyValueFactory::get

public KeyValueFactory::get($collection) Constructs a new key/value store for a given collection name. Parameters string $collection: The name of the collection holding key and value pairs. Return value \Drupal\Core\KeyValueStore\KeyValueStoreInterface A key/value store implementation for the given $collection. Overrides KeyValueFactoryInterface::get File core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php, line 61 Class KeyValueFactory Defines the key/value store factory. Namespace

ModuleHandler::getModuleList

public ModuleHandler::getModuleList() Returns the list of currently active modules. Return value \Drupal\Core\Extension\Extension[] An associative array whose keys are the names of the modules and whose values are Extension objects. Overrides ModuleHandlerInterface::getModuleList File core/lib/Drupal/Core/Extension/ModuleHandler.php, line 164 Class ModuleHandler Class that manages modules in a Drupal installation. Namespace Drupal\Core\Extension Code public function getModuleList() {

RfcLoggerTrait

A copy of \Psr\Log\LoggerTrait that uses RFC 5424 compliant log levels. Internal Drupal logger implementations should use this trait instead of \Psr\Log\LoggerTrait. Callers of those implementations are responsible for translating any other log level format to RFC 5424 compliant integers. Hierarchy trait \Drupal\Core\Logger\RfcLoggerTrait See also https://groups.google.com/forum/#!topic/php-fig/Rc5YDhNdGz4 https://www.drupal.org/node/2267545 File core/lib/Drupal/Core/Logger/RfcLoggerTrait.p