You are here

public function PatternDefinition::setClass in UI Patterns 8

Set Class property.

Parameters

string $class: Property value.

Return value

$this

Overrides PluginDefinition::setClass

File

src/Definition/PatternDefinition.php, line 587

Class

PatternDefinition
Class PatternDefinition.

Namespace

Drupal\ui_patterns\Definition

Code

public function setClass($class) {
  parent::setClass($class);
  $this->definition['class'] = $class;
  return $this;
}