StyleswitcherElementInfoAlter.php in Style Switcher 3.0.x
Same filename and directory in other branches
Namespace
Drupal\styleswitcherFile
src/StyleswitcherElementInfoAlter.phpView source
<?php
namespace Drupal\styleswitcher;
use Drupal\Core\Render\Element\RenderCallbackInterface;
/**
* Provides a trusted callback to alter the element type information.
*
* @see styleswitcher_element_info_alter()
*/
class StyleswitcherElementInfoAlter implements RenderCallbackInterface {
/**
* Render API callback: Adds HTML id for the Style Switcher style link.
*/
public static function preRenderHtmlTag(array $element) {
return styleswitcher_pre_render_html_tag($element);
}
}
Classes
Name | Description |
---|---|
StyleswitcherElementInfoAlter | Provides a trusted callback to alter the element type information. |