DbImportCommand

Provides a command to import the current database from a script. This script runs on databases exported using using one of the database dump commands and imports it into the current database connection. Hierarchy class \Symfony\Component\Console\Command\Commandclass \Drupal\Core\Command\DbCommandBaseclass \Drupal\Core\Command\DbImportCommand See also \Drupal\Core\Command\DbImportApplication File core/lib/Drupal/Core/Command/DbImportCommand.php, line 20 Namespace Drupal\Core\Command

HtmlResponse

A response that contains and can expose cacheability metadata and attachments. Supports Drupal's caching concepts: cache tags for invalidation and cache contexts for variations. Supports Drupal's idea of #attached metadata: libraries, settings, http_header and html_head. Hierarchy class \Symfony\Component\HttpFoundation\Responseclass \Drupal\Core\Render\HtmlResponse implements CacheableResponseInterface, AttachmentsInterface uses CacheableResponseTrait, AttachmentsTrait See also \Drupal\Co

Unicode

Provides Unicode-related conversions and operations. Hierarchy class \Drupal\Component\Utility\Unicode Related topics Utility classes and functions Overview of utility classes and functions for developers. File core/lib/Drupal/Component/Utility/Unicode.php, line 10 Namespace Drupal\Component\Utility Members Name Modifiers Type Description Unicode::$status protected static property Holds the multibyte capabilities of the current environment. Unicode::caseFlip public

LocaleConfigManager::getStringTranslation

public LocaleConfigManager::getStringTranslation($name, $langcode, $source, $context) Get the translation object for the given source/context and language. Parameters string $name: Name of the configuration location. string $langcode: Language code to translate to. string $source: The source string, should be English. string $context: The string context. Return value \Drupal\locale\TranslationString|false The translation object if the string was not empty or FALSE otherwise. File core/modules

ContainerBuilder

Drupal's dependency injection container builder. @todo Submit upstream patches to Symfony to not require these overrides. Hierarchy class \Symfony\Component\DependencyInjection\Container implements \Symfony\Component\DependencyInjection\ResettableContainerInterface , IntrospectableContainerInterfaceclass \Symfony\Component\DependencyInjection\ContainerBuilder implements \Symfony\Component\DependencyInjection\TaggedContainerInterface class \Drupal\Core\DependencyInjection\ContainerBuilder R

VocabularyResetForm::getFormId

public VocabularyResetForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides EntityForm::getFormId File core/modules/taxonomy/src/Form/VocabularyResetForm.php, line 44 Class VocabularyResetForm Provides confirmation form for resetting a vocabulary to alphabetical order. Namespace Drupal\taxonomy\Form Code public function getFormId() { return 'taxonomy_vocabulary_confirm_reset_alphabetical'; }

Services and Dependency Injection Container

Overview of the Dependency Injection Container and Services. Overview of container, injection, and services The Services and Dependency Injection Container concepts have been adopted by Drupal from the Symfony framework. A "service" (such as accessing the database, sending email, or translating user interface text) is defined (given a name and an interface or at least a class that defines the methods that may be called), and a default class is designated to provide the service. These two steps

NodeController

Returns responses for Node routes. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\node\Controller\NodeController implements ContainerInjectionInterface File core/modules/node/src/Controller/NodeController.php, line 19 Namespace Drupal\node\Controller Members Name Modifiers Type Description ControllerBase::

RequestContext::fromRequest

public RequestContext::fromRequest(Request $request) Updates the RequestContext information based on a HttpFoundation Request. Parameters Request $request A Request instance: Return value RequestContext The current instance, implementing a fluent interface Overrides RequestContext::fromRequest File core/lib/Drupal/Core/Routing/RequestContext.php, line 37 Class RequestContext Holds information about the current request. Namespace Drupal\Core\Routing Code public function fromRequest(Re

Rearrange::submitForm

public Rearrange::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides ViewsFormBase::submitForm File core/modules/views_ui/src/Form/Ajax/Rearrange.php, line 146 Class Rearrange Provides a rearrange form for Views handlers. Namespace Drupal\views_ui\Form\Ajax Code public function s