public function TestSource::getSourceFields in UI Patterns 8
Return list of source fields.
Return value
\Drupal\ui_patterns\Definition\PatternSourceField[] List of source fields.
Overrides PatternSourceInterface::getSourceFields
File
- tests/
modules/ ui_patterns_field_source_test/ src/ Plugin/ UiPatterns/ Source/ TestSource.php, line 24
Class
- TestSource
- Defines Fields API pattern source plugin.
Namespace
Drupal\ui_patterns_field_source_test\Plugin\UiPatterns\SourceCode
public function getSourceFields() {
return [
$this
->getSourceField('field_1', 'Field 1'),
$this
->getSourceField('field_2', 'Field 2'),
$this
->getSourceField('field_3', 'Field 3'),
$this
->getSourceField('field_4', 'Field 4'),
$this
->getSourceField('field_5', 'Field 5'),
];
}