function _css_editor_get_edited_theme in CSS Editor 8
Form helper.
2 calls to _css_editor_get_edited_theme()
- css_editor_form_system_theme_settings_alter in ./
css_editor.module - Implements hook_form_FORM_ID_alter() for `system_theme_settings`.
- _css_editor_theme_settings_form_submit in ./
css_editor.module - Form submission handler for hook_form_system_theme_settings_alter().
File
- ./
css_editor.module, line 130 - Allows users to apply customized CSS to themes.
Code
function _css_editor_get_edited_theme(FormStateInterface $form_state) {
// Return theme being currently edited.
$build_info = $form_state
->getBuildInfo();
return isset($build_info['args'][0]) ? $build_info['args'][0] : FALSE;
}