public function PatternDefinition::hasField in UI Patterns 8
Check whereas field exists.
Parameters
string $name: Field name.
Return value
bool Whereas field exists
1 call to PatternDefinition::hasField()
- PatternDefinition::getField in src/
Definition/ PatternDefinition.php - Get field.
File
- src/
Definition/ PatternDefinition.php, line 302
Class
- PatternDefinition
- Class PatternDefinition.
Namespace
Drupal\ui_patterns\DefinitionCode
public function hasField($name) {
return isset($this->definition['fields'][$name]);
}