public function PatternDefinition::getField in UI Patterns 8
Get field.
Parameters
string $name: Field name.
Return value
PatternDefinitionField|null Definition field.
File
- src/
Definition/ PatternDefinition.php, line 289
Class
- PatternDefinition
- Class PatternDefinition.
Namespace
Drupal\ui_patterns\DefinitionCode
public function getField($name) {
return $this
->hasField($name) ? $this->definition['fields'][$name] : NULL;
}