You are here

public static function Pattern::hasFields in UI Patterns 8

Whereas pattern has field or not.

Parameters

array $element: Render array.

Return value

bool TRUE or FALSE.

2 calls to Pattern::hasFields()
Pattern::processFields in src/Element/Pattern.php
Process fields.
Pattern::processMultipleSources in src/Element/Pattern.php
Process fields.

File

src/Element/Pattern.php, line 208

Class

Pattern
Renders a pattern element.

Namespace

Drupal\ui_patterns\Element

Code

public static function hasFields(array $element) {
  return isset($element['#fields']) && !empty($element['#fields']) && is_array($element['#fields']);
}