public function PatternDefinition::setField in UI Patterns 8
Set field.
Parameters
string $name: Field name.
string $label: Field label.
Return value
$this
File
- src/
Definition/ PatternDefinition.php, line 316
Class
- PatternDefinition
- Class PatternDefinition.
Namespace
Drupal\ui_patterns\DefinitionCode
public function setField($name, $label) {
$this->definition['fields'][$name] = $this
->getFieldDefinition($name, $label);
return $this;
}