You are here

public function PatternSourceInterface::getSourceField in UI Patterns 8

Source field factory method.

Parameters

string $name: Machine name.

string $label: Human readable label.

Return value

\Drupal\ui_patterns\Definition\PatternSourceField Source field instance.

1 method overrides PatternSourceInterface::getSourceField()
PatternSourceBase::getSourceField in src/Plugin/PatternSourceBase.php
Source field factory method.

File

src/Plugin/PatternSourceInterface.php, line 21

Class

PatternSourceInterface
Defines an interface for UI Patterns Source plugins.

Namespace

Drupal\ui_patterns\Plugin

Code

public function getSourceField($name, $label);