Drupal 8  8.0.2
ConfigSingleExportForm Class Reference
Inheritance diagram for ConfigSingleExportForm:

Public Member Functions

 __construct (EntityManagerInterface $entity_manager, StorageInterface $config_storage)
 
 getFormId ()
 
 buildForm (array $form, FormStateInterface $form_state, $config_type=NULL, $config_name=NULL)
 
 updateConfigurationType ($form, FormStateInterface $form_state)
 
 updateExport ($form, FormStateInterface $form_state)
 
 submitForm (array &$form, FormStateInterface $form_state)
 

Static Public Member Functions

static create (ContainerInterface $container)
 

Protected Member Functions

 findConfiguration ($config_type)
 

Protected Attributes

 $entityManager
 
 $configStorage
 
 $definitions = array()
 

Detailed Description

Provides a form for exporting a single configuration file.

Constructor & Destructor Documentation

__construct ( EntityManagerInterface  $entity_manager,
StorageInterface  $config_storage 
)

Constructs a new ConfigSingleImportForm.

Parameters
\Drupal\Core\Entity\EntityManagerInterface$entity_managerThe entity manager.
\Drupal\Core\Config\StorageInterface$config_storageThe config storage.

References Drupal\entityManager().

Here is the call graph for this function:

Member Function Documentation

buildForm ( array  $form,
FormStateInterface  $form_state,
  $config_type = NULL,
  $config_name = NULL 
)

{}

References Drupal\entityManager(), ConfigSingleExportForm\findConfiguration(), EntityTypeInterface\getLabel(), FormStateInterface\getValue(), t(), and ConfigSingleExportForm\updateExport().

Here is the call graph for this function:

static create ( ContainerInterface  $container)
static

{}

findConfiguration (   $config_type)
protected

Handles switching the configuration type selector.

References Drupal\entityManager(), and t().

Referenced by ConfigSingleExportForm\buildForm(), and ConfigSingleExportForm\updateConfigurationType().

Here is the call graph for this function:

Here is the caller graph for this function:

getFormId ( )

{}

submitForm ( array &  $form,
FormStateInterface  $form_state 
)

{}

updateConfigurationType (   $form,
FormStateInterface  $form_state 
)

Handles switching the configuration type selector.

References ConfigSingleExportForm\findConfiguration(), and FormStateInterface\getValue().

Here is the call graph for this function:

updateExport (   $form,
FormStateInterface  $form_state 
)

Handles switching the export textarea.

References Yaml\encode(), Drupal\entityManager(), FormStateInterface\getValue(), and t().

Referenced by ConfigSingleExportForm\buildForm().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: