You are here

public function FormBase::getProperties in Form Builder 7.2

File

src/FormBase.php, line 398

Class

FormBase

Namespace

Drupal\form_builder

Code

public function getProperties($reset = FALSE) {
  if (!$this->properties || $reset) {
    $properties = Loader::instance()
      ->getPropertyInfo($this->formType, $reset);
    foreach ($properties as $property => $params) {
      $class = $params['class'];
      $this->properties[$property] = new $class($property, $params, $this->formType);
    }
  }
  return $this->properties;
}