public static function BricksFieldTypeTrait::getPreconfiguredOptions in Bricks 2.x
2 methods override BricksFieldTypeTrait::getPreconfiguredOptions()
- BricksTreeItem::getPreconfiguredOptions in src/
Plugin/ Field/ FieldType/ BricksTreeItem.php - Returns preconfigured field options for a field type.
- BricksTreeRevisionedItem::getPreconfiguredOptions in modules/
bricks_revisions/ src/ Plugin/ Field/ FieldType/ BricksTreeRevisionedItem.php
File
- src/
BricksFieldTypeTrait.php, line 46
Class
Namespace
Drupal\bricksCode
public static function getPreconfiguredOptions() {
$options = parent::getPreconfiguredOptions();
array_walk($options, function (array &$option) {
$option['label'] .= ' (bricks)';
});
return $options;
}