function Custom::trustedCallbacks

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/field/Custom.php \Drupal\views\Plugin\views\field\Custom::trustedCallbacks()
  2. 8.9.x core/modules/views/src/Plugin/views/field/Custom.php \Drupal\views\Plugin\views\field\Custom::trustedCallbacks()
  3. 11.x core/modules/views/src/Plugin/views/field/Custom.php \Drupal\views\Plugin\views\field\Custom::trustedCallbacks()

Overrides PluginBase::trustedCallbacks

File

core/modules/views/src/Plugin/views/field/Custom.php, line 61

Class

Custom
A handler to provide a field that is completely custom by the administrator.

Namespace

Drupal\views\Plugin\views\field

Code

public static function trustedCallbacks() {
    $callbacks = parent::trustedCallbacks();
    $callbacks[] = 'preRenderCustomForm';
    return $callbacks;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.