You are here

public function PatternContext::isOfType in UI Patterns 8

Check whereas the current context is of a given type.

Parameters

string $type: Type string.

Return value

bool Whereas the current context is of a given type.

File

src/Element/PatternContext.php, line 73

Class

PatternContext
Class PatternContext.

Namespace

Drupal\ui_patterns\Element

Code

public function isOfType($type) {
  return $this->type == $type;
}