Version 1
[yaffs-website] / web / modules / contrib / linkit / src / Plugin / Linkit / Attribute / Clazz.php
1 <?php
2
3 /**
4  * @file
5  * Contains \Drupal\linkit\Plugin\Linkit\Attribute\Clazz.
6  */
7
8 namespace Drupal\linkit\Plugin\Linkit\Attribute;
9
10 use Drupal\linkit\AttributeBase;
11
12 /**
13  * Class attribute.
14  *
15  * @TODO: For now Drupal filter_html wont support class attributes with
16  * wildcards.
17  * See: \Drupal\filter\Plugin\Filter\FilterHtml::getHTMLRestrictions
18  * See: core/modules/filter/filter.filter_html.admin.js
19  *
20  * @Attribute(
21  *   id = "class",
22  *   label = @Translation("Class"),
23  *   html_name = "class",
24  *   description = @Translation("Basic input field for the class attribute."),
25  * )
26  */
27 //class Clazz extends AttributeBase {
28 //
29 //  /**
30 //   * {@inheritdoc}
31 //   */
32 //  public function buildFormElement($default_value) {
33 //    return [
34 //      '#type' => 'textfield',
35 //      '#title' => t('Class'),
36 //      '#maxlength' => 255,
37 //      '#size' => 40,
38 //    ];
39 //  }
40 //
41 //}