interface PatternSourceInterface in UI Patterns 8
Defines an interface for UI Patterns Source plugins.
Hierarchy
- interface \Drupal\ui_patterns\Plugin\PatternSourceInterface
Expanded class hierarchy of PatternSourceInterface
All classes that implement PatternSourceInterface
File
- src/
Plugin/ PatternSourceInterface.php, line 8
Namespace
Drupal\ui_patterns\PluginView source
interface PatternSourceInterface {
/**
* Source field factory method.
*
* @param string $name
* Machine name.
* @param string $label
* Human readable label.
*
* @return \Drupal\ui_patterns\Definition\PatternSourceField
* Source field instance.
*/
public function getSourceField($name, $label);
/**
* Return list of source fields.
*
* @return \Drupal\ui_patterns\Definition\PatternSourceField[]
* List of source fields.
*/
public function getSourceFields();
/**
* Get context property value, if any.
*
* @param string $name
* Context property name.
*
* @return mixed
* Context property value.
*/
public function getContextProperty($name);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PatternSourceInterface:: |
public | function | Get context property value, if any. | 1 |
PatternSourceInterface:: |
public | function | Source field factory method. | 1 |
PatternSourceInterface:: |
public | function | Return list of source fields. | 5 |