You are here

public static property WebformElementHelper::$ignoredProperties in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Utility/WebformElementHelper.php \Drupal\webform\Utility\WebformElementHelper::ignoredProperties

Ignored element properties.

Type: array

File

src/Utility/WebformElementHelper.php, line 22

Class

WebformElementHelper
Helper class webform element methods.

Namespace

Drupal\webform\Utility

Code

public static $ignoredProperties = [
  // Properties that will allow code injection.
  '#allowed_tags' => '#allowed_tags',
  // Properties that will break webform 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.
  '#access_callback' => '#access_callback',
  '#ajax' => '#ajax',
  '#after_build' => '#after_build',
  '#element_validate' => '#element_validate',
  '#lazy_builder' => '#lazy_builder',
  '#post_render' => '#post_render',
  '#pre_render' => '#pre_render',
  '#process' => '#process',
  '#submit' => '#submit',
  '#validate' => '#validate',
  '#value_callback' => '#value_callback',
  // Element specific callbacks.
  '#file_value_callbacks' => '#file_value_callbacks',
  '#date_date_callbacks' => '#date_date_callbacks',
  '#date_time_callbacks' => '#date_time_callbacks',
  '#captcha_validate' => '#captcha_validate',
];