You are here

public function YamlFormElementBase::hasWrapper in YAML Form 8

Checks if the element has a wrapper.

Parameters

array $element: An element.

Return value

bool TRUE if the element has a wrapper.

Overrides YamlFormElementInterface::hasWrapper

1 call to YamlFormElementBase::hasWrapper()
YamlFormElementBase::prepare in src/YamlFormElementBase.php
Prepare an element to be rendered within a form.

File

src/YamlFormElementBase.php, line 259

Class

YamlFormElementBase
Provides a base class for a form element.

Namespace

Drupal\yamlform

Code

public function hasWrapper(array $element) {
  return $this
    ->hasProperty('wrapper_attributes');
}