ConfigSnapshotSubscriber

Create a snapshot when config is imported. Hierarchy class \Drupal\Core\EventSubscriber\ConfigSnapshotSubscriber implements EventSubscriberInterface File core/lib/Drupal/Core/EventSubscriber/ConfigSnapshotSubscriber.php, line 14 Namespace Drupal\Core\EventSubscriber Members Name Modifiers Type Description ConfigSnapshotSubscriber::$configManager protected property The configuration manager. ConfigSnapshotSubscriber::$snapshotStorage protected property The snapsho

ConfigSingleImportForm::__construct

public ConfigSingleImportForm::__construct(EntityManagerInterface $entity_manager, StorageInterface $config_storage, RendererInterface $renderer, EventDispatcherInterface $event_dispatcher, ConfigManagerInterface $config_manager, LockBackendInterface $lock, TypedConfigManagerInterface $typed_config, ModuleHandlerInterface $module_handler, ModuleInstallerInterface $module_installer, ThemeHandlerInterface $theme_handler) Constructs a new ConfigSingleImportForm. Parameters \Drupal\Core\Entity\Ent

ConfigSingleImportForm::validateForm

public ConfigSingleImportForm::validateForm(array &$form, FormStateInterface $form_state) Form validation 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 FormBase::validateForm File core/modules/config/src/Form/ConfigSingleImportForm.php, line 279 Class ConfigSingleImportForm Provides a form for importing a single configuration file. Namespace Drupa

ConfigSingleImportForm::submitForm

public ConfigSingleImportForm::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 FormInterface::submitForm File core/modules/config/src/Form/ConfigSingleImportForm.php, line 384 Class ConfigSingleImportForm Provides a form for importing a single configuration file. Namespace Drup

ConfigSingleImportForm::getQuestion

public ConfigSingleImportForm::getQuestion() Returns the question to ask the user. Return value string The form question. The page title will be set to this value. Overrides ConfirmFormInterface::getQuestion File core/modules/config/src/Form/ConfigSingleImportForm.php, line 189 Class ConfigSingleImportForm Provides a form for importing a single configuration file. Namespace Drupal\config\Form Code public function getQuestion() { if ($this->data['config_type'] === 'system.simple')

ConfigSingleImportForm::getFormId

public ConfigSingleImportForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/config/src/Form/ConfigSingleImportForm.php, line 175 Class ConfigSingleImportForm Provides a form for importing a single configuration file. Namespace Drupal\config\Form Code public function getFormId() { return 'config_single_import_form'; }

ConfigSingleImportForm::getCancelUrl

public ConfigSingleImportForm::getCancelUrl() Returns the route to go to if the user cancels the action. Return value \Drupal\Core\Url A URL object. Overrides ConfirmFormInterface::getCancelUrl File core/modules/config/src/Form/ConfigSingleImportForm.php, line 182 Class ConfigSingleImportForm Provides a form for importing a single configuration file. Namespace Drupal\config\Form Code public function getCancelUrl() { return new Url('config.import_single'); }

ConfigSingleImportForm::create

public static ConfigSingleImportForm::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 $container: The s

ConfigSingleImportForm::buildForm

public ConfigSingleImportForm::buildForm(array $form, FormStateInterface $form_state) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides ConfirmFormBase::buildForm File core/modules/config/src/Form/ConfigSingleImportForm.php, line 216 Class ConfigSingleImportForm Provides a form for importing a single configura

ConfigSingleImportForm::$typedConfigManager

The typed config manager. Type: \Drupal\Core\Config\TypedConfigManagerInterface File core/modules/config/src/Form/ConfigSingleImportForm.php, line 78 Class ConfigSingleImportForm Provides a form for importing a single configuration file. Namespace Drupal\config\Form Code protected $typedConfigManager;