You are here

StyleswitcherElementInfoAlter.php in Style Switcher 8.2

Same filename and directory in other branches
  1. 3.0.x src/StyleswitcherElementInfoAlter.php

File

src/StyleswitcherElementInfoAlter.php
View 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

Namesort descending Description
StyleswitcherElementInfoAlter Provides a trusted callback to alter the element type information.