public function FieldWrapperSource::getSourceFields in UI Patterns Field Formatters 8
Return list of source fields.
Return value
\Drupal\ui_patterns\Definition\PatternSourceField[] List of source fields.
Overrides PatternSourceInterface::getSourceFields
File
- src/
Plugin/ UiPatterns/ Source/ FieldWrapperSource.php, line 23
Class
- FieldWrapperSource
- Defines Field values source plugin.
Namespace
Drupal\ui_patterns_field_formatters\Plugin\UiPatterns\SourceCode
public function getSourceFields() {
$sources = [];
$sources[] = $this
->getSourceField('label', 'Label');
$sources[] = $this
->getSourceField('items', 'Items');
return $sources;
}