Drupal 8  8.0.2
NegotiationConfigureForm Class Reference
Inheritance diagram for NegotiationConfigureForm:

Public Member Functions

 __construct (ConfigFactoryInterface $config_factory, ConfigurableLanguageManagerInterface $language_manager, LanguageNegotiatorInterface $negotiator, BlockManagerInterface $block_manager, ThemeHandlerInterface $theme_handler, EntityStorageInterface $block_storage=NULL)
 
 getFormId ()
 
 buildForm (array $form, FormStateInterface $form_state)
 
 submitForm (array &$form, FormStateInterface $form_state)
 
- Public Member Functions inherited from ConfigFormBase
 __construct (ConfigFactoryInterface $config_factory)
 
 buildForm (array $form, FormStateInterface $form_state)
 
 submitForm (array &$form, FormStateInterface $form_state)
 

Static Public Member Functions

static create (ContainerInterface $container)
 
- Static Public Member Functions inherited from ConfigFormBase
static create (ContainerInterface $container)
 

Protected Member Functions

 getEditableConfigNames ()
 
 configureFormTable (array &$form, $type)
 
 disableLanguageSwitcher (array $language_types)
 

Protected Attributes

 $languageTypes
 
 $languageManager
 
 $negotiator
 
 $blockManager
 
 $blockStorage
 
 $themeHandler
 

Detailed Description

Configure the selected language negotiation method for this site.

Constructor & Destructor Documentation

__construct ( ConfigFactoryInterface  $config_factory,
ConfigurableLanguageManagerInterface  $language_manager,
LanguageNegotiatorInterface  $negotiator,
BlockManagerInterface  $block_manager,
ThemeHandlerInterface  $theme_handler,
EntityStorageInterface  $block_storage = NULL 
)

Constructs a NegotiationConfigureForm object.

Parameters
\Drupal\Core\Config\ConfigFactoryInterface$config_factoryThe factory for configuration objects.
\Drupal\language\ConfigurableLanguageManagerInterface$language_managerThe language manager.
\Drupal\language\LanguageNegotiatorInterface$negotiatorThe language negotiation methods manager.
\Drupal\Core\Block\BlockManagerInterface$block_managerThe block manager.
\Drupal\Core\Extension\ThemeHandlerInterface$theme_handlerThe theme handler.
\Drupal\Core\Entity\EntityStorageInterface$block_storageThe block storage, or NULL if not available.

References Drupal\config(), and Drupal\languageManager().

Here is the call graph for this function:

Member Function Documentation

buildForm ( array  $form,
FormStateInterface  $form_state 
)

{}

References NegotiationConfigureForm\configureFormTable(), Drupal\languageManager(), and t().

Here is the call graph for this function:

configureFormTable ( array &  $form,
  $type 
)
protected

Builds a language negotiation method configuration table.

Parameters
array$formThe language negotiation configuration form.
string$typeThe language type to generate the table for.

References Url\fromRoute(), LanguageNegotiationSelected\METHOD_ID, Unicode\strtolower(), and t().

Referenced by NegotiationConfigureForm\buildForm().

Here is the call graph for this function:

Here is the caller graph for this function:

static create ( ContainerInterface  $container)
static

{}

disableLanguageSwitcher ( array  $language_types)
protected

Disables the language switcher blocks.

Parameters
array$language_typesAn array containing all language types whose language switchers need to be disabled.

Referenced by NegotiationConfigureForm\submitForm().

Here is the caller graph for this function:

getEditableConfigNames ( )
protected

{}

getFormId ( )

{}

submitForm ( array &  $form,
FormStateInterface  $form_state 
)

{}

References NegotiationConfigureForm\disableLanguageSwitcher(), FormStateInterface\getValue(), FormStateInterface\hasValue(), FormStateInterface\isValueEmpty(), LanguageNegotiationSelected\METHOD_ID, FormStateInterface\setRedirect(), and t().

Here is the call graph for this function:


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