public static function UiPatterns::getPatternDefinition in UI Patterns 8
Get pattern definition.
Parameters
string $id: Pattern ID.
Return value
\Drupal\ui_patterns\Definition\PatternDefinition Pattern object instance.
2 calls to UiPatterns::getPatternDefinition()
- Pattern::processUse in src/
Element/ Pattern.php - Process use property.
- PatternPreview::processFields in src/
Element/ PatternPreview.php - Process fields.
File
- src/
UiPatterns.php, line 41
Class
- UiPatterns
- UI Patterns factory class.
Namespace
Drupal\ui_patternsCode
public static function getPatternDefinition($id) {
return \Drupal::service('plugin.manager.ui_patterns')
->getDefinition($id);
}