Schema::addIndex

public Schema::addIndex($table, $name, $fields, array $spec) Add an index. @todo remove the $spec argument whenever schema introspection is added. Parameters $table: The table to be altered. $name: The name of the index. $fields: An array of field names or field information; if field information is passed, it's an array whose first element is the field name and whose second is the maximum length in the index. For example, the following will use the full length of the `foo` field, but limit the

Queue operations

Queue items to allow later processing. The queue system allows placing items in a queue and processing them later. The system tries to ensure that only one consumer can process an item. Before a queue can be used it needs to be created by Drupal\Core\Queue\QueueInterface::createQueue(). Items can be added to the queue by passing an arbitrary data object to Drupal\Core\Queue\QueueInterface::createItem(). To process an item, call Drupal\Core\Queue\QueueInterface::claimItem() and specify how long

DrupalDateTime::format

public DrupalDateTime::format($format, $settings = array()) Overrides format(). Parameters string $format: A format string using either PHP's date(). array $settings: timezone: (optional) String timezone name. Defaults to the timezone of the date object. langcode: (optional) String two letter language code used to control the result of the format() method. Defaults to NULL. Return value string The formatted value of the date. Since the format may contain user input, this value should be e

UserListBuilder

Defines a class to build a listing of user entities. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityListBuilder implements EntityHandlerInterface, EntityListBuilderInterfaceclass \Drupal\user\UserListBuilder See also \Drupal\user\Entity\User File core/modules/user/src/UserListBuilder.php, line 20 Namespace Drupal\user Members Name Modifiers Type Description DependencySerializatio

WriteSafeSessionHandler::setSessionWritable

public WriteSafeSessionHandler::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. Overrides WriteSafeSessionHandlerInterface::setSessionWritable File core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php, line 85

BundleModerationConfigurationForm::create

public static BundleModerationConfigurationForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $conta

CacheContextsManager::optimizeTokens

public CacheContextsManager::optimizeTokens(array $context_tokens) Optimizes cache context tokens (the minimal representative subset). A minimal representative subset means that any cache context token in the given set of cache context tokens that is a property of another cache context cache context token in the set, is removed. Hence a minimal representative subset is the most compact representation possible of a set of cache context tokens, that still captures the entire universe of variation

ConfigManager::callOnDependencyRemoval

protected ConfigManager::callOnDependencyRemoval(ConfigEntityInterface $entity, array $dependent_entities, $type, array $names) Calls an entity's onDependencyRemoval() method. A helper method to call onDependencyRemoval() with the correct list of affected entities. This list should only contain dependencies on the entity. Configuration and content entity dependencies will be converted into entity objects. Parameters \Drupal\Core\Config\Entity\ConfigEntityInterface $entity: The entity to call o

Textarea::getTranslationElement

public Textarea::getTranslationElement(LanguageInterface $translation_language, $source_config, $translation_config) Returns the translation form element for a given configuration definition. For complex data structures (such as mappings) that are translatable wholesale but contain non-translatable properties, the form element is responsible for checking access to the source value of those properties. In case of formatted text, for example, access to the source text format must be checked. If t

CommentTypeInterface

Provides an interface defining a comment type entity. Hierarchy interface \Drupal\Core\Entity\EntityInterface; interface \Drupal\Core\Config\Entity\ThirdPartySettingsInterfaceinterface \Drupal\Core\Config\Entity\ConfigEntityInterfaceinterface \Drupal\comment\CommentTypeInterface File core/modules/comment/src/CommentTypeInterface.php, line 10 Namespace Drupal\comment Members Name Modifiers Type Description AccessibleInterface::access public function Checks data value ac