You are here

public function PatternDefinitionField::setType in UI Patterns 8

Set Type property.

Parameters

string $type: Property value.

Return value

$this

File

src/Definition/PatternDefinitionField.php, line 114

Class

PatternDefinitionField
Class PatternDefinitionField.

Namespace

Drupal\ui_patterns\Definition

Code

public function setType($type) {
  $this->definition['type'] = $type;
  return $this;
}