You are here

public static function Micon::preRenderMicon in Micon 8

Same name and namespace in other branches
  1. 2.x src/Element/Micon.php \Drupal\micon\Element\Micon::preRenderMicon()

Prepares a select render element.

File

src/Element/Micon.php, line 137

Class

Micon
Provides a one-line text field form element.

Namespace

Drupal\micon\Element

Code

public static function preRenderMicon($element) {
  Element::setAttributes($element, [
    'id',
    'name',
    'size',
  ]);
  static::setAttributes($element, [
    'form-micon',
  ]);
  return $element;
}