FileAccessControlHandler::checkCreateAccess

protected FileAccessControlHandler::checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) Performs create access checks. This method is supposed to be overwritten by extending classes that do their own custom access checking. Parameters \Drupal\Core\Session\AccountInterface $account: The user for which to check access. array $context: An array of key-value pairs to pass additional context when needed. string|null $entity_bundle: (optional) The bundle of the entity

LocaleConfigSubscriber::resetExistingTranslations

protected LocaleConfigSubscriber::resetExistingTranslations($name, $translatable, $reference_config, $langcode) Reset existing locale translations to their source values. Goes through $translatable to reset any existing translations to the source string, so prior translations would not reappear in the configuration. Parameters string $name: The configuration name. array|\Drupal\Core\StringTranslation\TranslatableMarkup $translatable: Either a possibly nested array with TranslatableMarkup objec

SharedTempStore

Stores and retrieves temporary data for a given owner. A SharedTempStore can be used to make temporary, non-cache data available across requests. The data for the SharedTempStore is stored in one key/value collection. SharedTempStore data expires automatically after a given timeframe. The SharedTempStore is different from a cache, because the data in it is not yet saved permanently and so it cannot be rebuilt. Typically, the SharedTempStore might be used to store work in progress that is later

SelectExtender::getArguments

public SelectExtender::getArguments(PlaceholderInterface $queryPlaceholder = NULL) Compiles and returns an associative array of the arguments for this prepared statement. Parameters $queryPlaceholder: When collecting the arguments of a subquery, the main placeholder object should be passed as this parameter. Return value An associative array of all placeholder arguments for this query. Overrides SelectInterface::getArguments File core/lib/Drupal/Core/Database/Query/SelectExtender.php, line 28

ConfigBase::getCacheTags

public ConfigBase::getCacheTags() The cache tags associated with this object. When this object is modified, these cache tags will be invalidated. Return value string[] A set of cache tags. Overrides RefinableCacheableDependencyTrait::getCacheTags File core/lib/Drupal/Core/Config/ConfigBase.php, line 264 Class ConfigBase Provides a base class for configuration objects with get/set support. Namespace Drupal\Core\Config Code public function getCacheTags() { return Cache::mergeTags(['co

PhpassHashedPassword::MIN_HASH_COUNT

The minimum allowed log2 number of iterations for password stretching. File core/lib/Drupal/Core/Password/PhpassHashedPassword.php, line 17 Class PhpassHashedPassword Secure password hashing functions based on the Portable PHP password hashing framework. Namespace Drupal\Core\Password Code const MIN_HASH_COUNT = 7;

OpenModalDialogCommand::__construct

public OpenModalDialogCommand::__construct($title, $content, array $dialog_options = array(), $settings = NULL) Constructs an OpenModalDialog object. The modal dialog differs from the normal modal provided by OpenDialogCommand in that a modal prevents other interactions on the page until the modal has been completed. Drupal provides a built-in modal for this purpose, so no selector needs to be provided. Parameters string $title: The title of the dialog. string|array $content: The content that

YamlDiscovery::$directories

An array of directories to scan, keyed by the provider. Type: array File core/lib/Drupal/Component/Discovery/YamlDiscovery.php, line 25 Class YamlDiscovery Provides discovery for YAML files within a given set of directories. Namespace Drupal\Component\Discovery Code protected $directories = array();

StateTransitionValidation::transitionStorage

protected StateTransitionValidation::transitionStorage() Returns the transition entity storage service. Return value \Drupal\Core\Entity\EntityStorageInterface The transition state entity storage. File core/modules/content_moderation/src/StateTransitionValidation.php, line 218 Class StateTransitionValidation Validates whether a certain state transition is allowed. Namespace Drupal\content_moderation Code protected function transitionStorage() { return $this->entityTypeManager->

DiffFormatter::_block

protected DiffFormatter::_block($xbeg, $xlen, $ybeg, $ylen, &$edits) File core/lib/Drupal/Component/Diff/DiffFormatter.php, line 111 Class DiffFormatter A class to format Diffs Namespace Drupal\Component\Diff Code protected function _block($xbeg, $xlen, $ybeg, $ylen, &$edits) { $this->_start_block($this->_block_header($xbeg, $xlen, $ybeg, $ylen)); foreach ($edits as $edit) { if ($edit->type == 'copy') { $this->_context($edit->orig); } elseif