LanguagesCacheContext

Defines the LanguagesCacheContext service, for "per language" caching. Hierarchy class \Drupal\Core\Cache\Context\LanguagesCacheContext implements CalculatedCacheContextInterface File core/lib/Drupal/Core/Cache/Context/LanguagesCacheContext.php, line 11 Namespace Drupal\Core\Cache\Context Members Name Modifiers Type Description LanguagesCacheContext::$languageManager protected property The language manager. LanguagesCacheContext::getCacheableMetadata public functio

RfcLogLevel::DEBUG

Log message severity -- Debug-level messages. File core/lib/Drupal/Core/Logger/RfcLogLevel.php, line 73 Class RfcLogLevel Defines various logging severity levels. Namespace Drupal\Core\Logger Code const DEBUG = 7;

State::__construct

State::__construct(KeyValueFactoryInterface $key_value_factory) Constructs a State object. Parameters \Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value_factory: The key value store to use. File core/lib/Drupal/Core/State/State.php, line 32 Class State Provides the state system using a key value store. Namespace Drupal\Core\State Code function __construct(KeyValueFactoryInterface $key_value_factory) { $this->keyValueStore = $key_value_factory->get('state'); }

RenderCache::maxAgeToExpire

protected RenderCache::maxAgeToExpire($max_age) Maps a #cache[max-age] value to an "expire" value for the Cache API. Parameters int $max_age: A #cache[max-age] value. Return value int A corresponding "expire" value. See also \Drupal\Core\Cache\CacheBackendInterface::set() File core/lib/Drupal/Core/Render/RenderCache.php, line 283 Class RenderCache Wraps the caching logic for the render caching system. Namespace Drupal\Core\Render Code protected function maxAgeToExpire($max_age) {

Schema::alterTable

protected Schema::alterTable($table, $old_schema, $new_schema, array $mapping = array()) Create a table with a new schema containing the old content. As SQLite does not support ALTER TABLE (with a few exceptions) it is necessary to create a new table and copy over the old content. Parameters $table: Name of the table to be altered. $old_schema: The old schema array for the table. $new_schema: The new schema array for the table. $mapping: An optional mapping between the fields of the old specif

OptimizedPhpArrayDumper::getPrivateServiceCall

protected OptimizedPhpArrayDumper::getPrivateServiceCall($id, Definition $definition, $shared = FALSE) Gets a private service definition in a suitable format. Parameters string $id: The ID of the service to get a private definition for. \Symfony\Component\DependencyInjection\Definition $definition: The definition to process. bool $shared: (optional) Whether the service will be shared with others. By default this parameter is FALSE. Return value \stdClass A very lightweight private service val

ConfigFactory::getCacheKeys

public ConfigFactory::getCacheKeys() The cache keys associated with the state of the config factory. All state information that can influence the result of a get() should be included. Typically, this includes a key for each override added via addOverride(). This allows external code to maintain caches of configuration data in addition to or instead of caches maintained by the factory. Return value array An array of strings, used to generate a cache ID. Overrides ConfigFactoryInterface::getCach

FormSubmitter::batchGet

protected &FormSubmitter::batchGet() Wraps batch_get(). File core/lib/Drupal/Core/Form/FormSubmitter.php, line 158 Class FormSubmitter Provides submission processing for forms. Namespace Drupal\Core\Form Code protected function &batchGet() { return batch_get(); }

EntityTypeInfo::$moderationHandlers

A keyed array of custom moderation handlers for given entity types. Any entity not specified will use a common default. Type: array File core/modules/content_moderation/src/EntityTypeInfo.php, line 66 Class EntityTypeInfo Manipulates entity type information. Namespace Drupal\content_moderation Code protected $moderationHandlers = [ 'node' => NodeModerationHandler::class, 'block_content' => BlockContentModerationHandler::class, ];

FormSubmitterInterface

Provides an interface for processing form submissions. Hierarchy interface \Drupal\Core\Form\FormSubmitterInterface File core/lib/Drupal/Core/Form/FormSubmitterInterface.php, line 8 Namespace Drupal\Core\Form Members Name Modifiers Type Description FormSubmitterInterface::doSubmitForm public function Handles the submitted form, executing callbacks and processing responses. FormSubmitterInterface::executeSubmitHandlers public function Executes custom submission ha