Drupal 8  8.0.2
ThemeSettingsForm Class Reference
Inheritance diagram for ThemeSettingsForm:

Public Member Functions

 __construct (ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, ThemeHandlerInterface $theme_handler, MimeTypeGuesserInterface $mime_type_guesser)
 
 getFormId ()
 
 validateForm (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 ()
 
 validatePath ($path)
 

Protected Attributes

 $moduleHandler
 
 $themeHandler
 
 $mimeTypeGuesser
 
 $editableConfig = []
 

Detailed Description

Displays theme configuration for entire site and individual themes.

Constructor & Destructor Documentation

__construct ( ConfigFactoryInterface  $config_factory,
ModuleHandlerInterface  $module_handler,
ThemeHandlerInterface  $theme_handler,
MimeTypeGuesserInterface  $mime_type_guesser 
)

Constructs a ThemeSettingsForm object.

Parameters
\Drupal\Core\Config\ConfigFactoryInterface$config_factoryThe factory for configuration objects.
\Drupal\Core\Extension\ModuleHandlerInterface$module_handlerThe module handler instance to use.
\Drupal\Core\Extension\ThemeHandlerInterface$theme_handlerThe theme handler.
\Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface$mime_type_guesserThe MIME type guesser instance to use.

References Drupal\moduleHandler().

Here is the call graph for this function:

Member Function Documentation

static create ( ContainerInterface  $container)
static

{}

getEditableConfigNames ( )
protected

{}

getFormId ( )

{}

submitForm ( array &  $form,
FormStateInterface  $form_state 
)

{}

References Drupal\config(), file_unmanaged_copy(), and ThemeSettingsForm\validatePath().

Here is the call graph for this function:

validateForm ( array &  $form,
FormStateInterface  $form_state 
)

{}

References Drupal\moduleHandler(), t(), and ThemeSettingsForm\validatePath().

Here is the call graph for this function:

validatePath (   $path)
protected

Helper function for the system_theme_settings form.

Attempts to validate normal system paths, paths relative to the public files directory, or stream wrapper URIs. If the given path is any of the above, returns a valid path or URI that the theme system can display.

Parameters
string$pathA path relative to the Drupal root or to the public files directory, or a stream wrapper URI.
Returns
mixed A valid path that can be displayed through the theme system, or FALSE if the path could not be validated.

References drupal_realpath(), and file_uri_scheme().

Referenced by ThemeSettingsForm\submitForm(), and ThemeSettingsForm\validateForm().

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: