theme_get_registry

theme_get_registry($complete = TRUE) Gets the theme registry. Parameters bool $complete: Optional boolean to indicate whether to return the complete theme registry array or an instance of the Drupal\Core\Utility\ThemeRegistry class. If TRUE, the complete theme registry array will be returned. This is useful if you want to foreach over the whole registry, use array_* functions or inspect it in a debugger. If FALSE, an instance of the Drupal\Core\Utility\ThemeRegistry class will be returned, thi

ThemeSettingsForm::__construct

public ThemeSettingsForm::__construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, ThemeHandlerInterface $theme_handler, MimeTypeGuesserInterface $mime_type_guesser) Constructs a ThemeSettingsForm object. Parameters \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects. \Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler instance to use. \Drupal\Core\Extension\ThemeHandlerInterface $the

ThemeSettingsForm::validatePath

protected ThemeSettingsForm::validatePath($path) 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 $path: A path relative to the Drupal root or to the public files directory, or a stream wrapper URI. Return value mixed A valid path that can be displayed through t

ThemeSettingsForm::validateForm

public ThemeSettingsForm::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/system/src/Form/ThemeSettingsForm.php, line 344 Class ThemeSettingsForm Displays theme configuration for entire site and individual themes. Namespace Drupal\syst

ThemeSettingsForm::submitForm

public ThemeSettingsForm::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 ConfigFormBase::submitForm File core/modules/system/src/Form/ThemeSettingsForm.php, line 411 Class ThemeSettingsForm Displays theme configuration for entire site and individual themes. Namespace Drupal\sy

ThemeSettingsForm::getFormId

public ThemeSettingsForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/system/src/Form/ThemeSettingsForm.php, line 84 Class ThemeSettingsForm Displays theme configuration for entire site and individual themes. Namespace Drupal\system\Form Code public function getFormId() { return 'system_theme_settings'; }

ThemeSettingsForm::getEditableConfigNames

protected ThemeSettingsForm::getEditableConfigNames() Gets the configuration names that will be editable. Return value array An array of configuration object names that are editable if called in conjunction with the trait's config() method. Overrides ConfigFormBaseTrait::getEditableConfigNames File core/modules/system/src/Form/ThemeSettingsForm.php, line 91 Class ThemeSettingsForm Displays theme configuration for entire site and individual themes. Namespace Drupal\system\Form Code pro

ThemeSettingsForm::create

public static ThemeSettingsForm::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 servic

ThemeSettingsForm::buildForm

public ThemeSettingsForm::buildForm(array $form, FormStateInterface $form_state, $theme = '') Parameters string $theme: The theme name. Overrides ConfigFormBase::buildForm File core/modules/system/src/Form/ThemeSettingsForm.php, line 101 Class ThemeSettingsForm Displays theme configuration for entire site and individual themes. Namespace Drupal\system\Form Code public function buildForm(array $form, FormStateInterface $form_state, $theme = '') { $form = parent::buildForm($form, $for

ThemeSettingsForm::$themeHandler

The theme handler. Type: \Drupal\Core\Extension\ThemeHandlerInterface File core/modules/system/src/Form/ThemeSettingsForm.php, line 33 Class ThemeSettingsForm Displays theme configuration for entire site and individual themes. Namespace Drupal\system\Form Code protected $themeHandler;