Version 1
[yaffs-website] / web / modules / contrib / linkit / src / Plugin / Linkit / Attribute / Clazz.php
diff --git a/web/modules/contrib/linkit/src/Plugin/Linkit/Attribute/Clazz.php b/web/modules/contrib/linkit/src/Plugin/Linkit/Attribute/Clazz.php
new file mode 100644 (file)
index 0000000..03787e7
--- /dev/null
@@ -0,0 +1,41 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\linkit\Plugin\Linkit\Attribute\Clazz.
+ */
+
+namespace Drupal\linkit\Plugin\Linkit\Attribute;
+
+use Drupal\linkit\AttributeBase;
+
+/**
+ * Class attribute.
+ *
+ * @TODO: For now Drupal filter_html wont support class attributes with
+ * wildcards.
+ * See: \Drupal\filter\Plugin\Filter\FilterHtml::getHTMLRestrictions
+ * See: core/modules/filter/filter.filter_html.admin.js
+ *
+ * @Attribute(
+ *   id = "class",
+ *   label = @Translation("Class"),
+ *   html_name = "class",
+ *   description = @Translation("Basic input field for the class attribute."),
+ * )
+ */
+//class Clazz extends AttributeBase {
+//
+//  /**
+//   * {@inheritdoc}
+//   */
+//  public function buildFormElement($default_value) {
+//    return [
+//      '#type' => 'textfield',
+//      '#title' => t('Class'),
+//      '#maxlength' => 255,
+//      '#size' => 40,
+//    ];
+//  }
+//
+//}