ConfigImporter

Defines a configuration importer. A config importer imports the changes into the configuration system. To determine which changes to import a StorageComparer in used. The ConfigImporter has a identifier which is used to construct event names. The events fired during an import are: ConfigEvents::IMPORT_VALIDATE: Events listening can throw a \Drupal\Core\Config\ConfigImporterException to prevent an import from occurring. ConfigEvents::IMPORT: Events listening can react to a successful import.

BlockForm::themeSwitch

public BlockForm::themeSwitch($form, FormStateInterface $form_state) Handles switching the available regions based on the selected theme. File core/modules/block/src/BlockForm.php, line 210 Class BlockForm Provides form for block instance forms. Namespace Drupal\block Code public function themeSwitch($form, FormStateInterface $form_state) { $form['region']['#options'] = system_region_list($form_state->getValue('theme'), REGIONS_VISIBLE); return $form['region']; }

NullGenerator::getRoute

protected NullGenerator::getRoute($name) generate(), generateFromRoute(), and getPathFromRoute() all call this protected method. Overrides UrlGenerator::getRoute File core/lib/Drupal/Core/Routing/NullGenerator.php, line 33 Class NullGenerator No-op implementation of a Url Generator, needed for backward compatibility. Namespace Drupal\Core\Routing Code protected function getRoute($name) { if ($name === '<front>') { return new Route('/'); } elseif ($name === '<current

SelectExtender::compile

public SelectExtender::compile(Connection $connection, PlaceholderInterface $queryPlaceholder) Compiles the saved conditions for later retrieval. This method does not return anything, but simply prepares data to be retrieved via __toString() and arguments(). Parameters $connection: The database connection for which to compile the conditionals. $queryPlaceholder: The query this condition belongs to. If not given, the current query is used. Overrides ConditionInterface::compile File core/lib/Dru

ConfigMapperInterface::getLangcodeFromConfig

public ConfigMapperInterface::getLangcodeFromConfig($config_name) Returns the language code of a configuration object given its name. Parameters string $config_name: The name of the configuration object. Return value string The language code of the configuration object. File core/modules/config_translation/src/ConfigMapperInterface.php, line 214 Class ConfigMapperInterface Defines an interface for configuration mapper. Namespace Drupal\config_translation Code public function getLangc

content_translation_form_alter

content_translation_form_alter(array &$form, FormStateInterface $form_state) Implements hook_form_alter(). File core/modules/content_translation/content_translation.module, line 291 Allows entities to be translated into different languages. Code function content_translation_form_alter(array &$form, FormStateInterface $form_state) { $form_object = $form_state->getFormObject(); if (!($form_object instanceof ContentEntityFormInterface)) { return; } $entity = $form_object-&

FieldUninstallValidator::getFieldTypeLabel

protected FieldUninstallValidator::getFieldTypeLabel($field_type) Returns the label for a specified field type. Parameters string $field_type: The field type. Return value string The field type label. File core/modules/field/src/FieldUninstallValidator.php, line 98 Class FieldUninstallValidator Prevents uninstallation of modules providing active field storage. Namespace Drupal\field Code protected function getFieldTypeLabel($field_type) { return $this->fieldTypeManager->getDe

Query::$connectionKey

The key of the connection object. Type: string File core/lib/Drupal/Core/Database/Query/Query.php, line 35 Class Query Base class for query builders. Namespace Drupal\Core\Database\Query Code protected $connectionKey;

ActionDeleteForm::getCancelUrl

public ActionDeleteForm::getCancelUrl() Returns the route to go to if the user cancels the action. Return value \Drupal\Core\Url A URL object. Overrides EntityDeleteFormTrait::getCancelUrl File core/modules/action/src/Form/ActionDeleteForm.php, line 16 Class ActionDeleteForm Builds a form to delete an action. Namespace Drupal\action\Form Code public function getCancelUrl() { return new Url('entity.action.collection'); }

AccessAwareRouter::getRouteCollection

public AccessAwareRouter::getRouteCollection() Gets the RouteCollection instance associated with this Router. Return value RouteCollection A RouteCollection instance Overrides RouterInterface::getRouteCollection File core/lib/Drupal/Core/Routing/AccessAwareRouter.php, line 116 Class AccessAwareRouter A router class for Drupal with access check and upcasting. Namespace Drupal\Core\Routing Code public function getRouteCollection() { return $this->chainRouter->getRouteCollection(