Commit 3ad3fb82 authored by targoo's avatar targoo

define a default field setting for color item

parent edc5a10a
......@@ -26,6 +26,15 @@ use Drupal\Core\TypedData\DataDefinition;
*/
class ColorFieldItem extends FieldItemBase {
/**
* {@inheritdoc}
*/
public static function defaultFieldSettings() {
return array(
'opacity' => TRUE,
) + parent::defaultFieldSettings();
}
/**
* {@inheritdoc}
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment