You are here

public static property YamlFormElementHelper::$ignoredProperties in YAML Form 8

Ignored element properties.

Type: array

File

src/Utility/YamlFormElementHelper.php, line 21

Class

YamlFormElementHelper
Helper class form element methods.

Namespace

Drupal\yamlform\Utility

Code

public static $ignoredProperties = [
  // Properties that will allow code injection.
  '#allowed_tags' => '#allowed_tags',
  // Properties that will break form data handling.
  '#tree' => '#tree',
  '#array_parents' => '#array_parents',
  '#parents' => '#parents',
  // Properties that will cause unpredictable rendering.
  '#weight' => '#weight',
  // Callbacks are blocked to prevent unwanted code executions.
  '#after_build' => '#after_build',
  '#element_validate' => '#element_validate',
  '#post_render' => '#post_render',
  '#pre_render' => '#pre_render',
  '#process' => '#process',
  '#submit' => '#submit',
  '#validate' => '#validate',
  '#value_callback' => '#value_callback',
];