You are here

public static function Micon::preRenderMicon in Micon 2.x

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

Prepares a select render element.

File

src/Element/Micon.php, line 138

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;
}