You are here

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\Definition

Code

public function getField($name) {
  return $this
    ->hasField($name) ? $this->definition['fields'][$name] : NULL;
}