You are here

public static function PluginBase::trustedCallbacks in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::trustedCallbacks()

Lists the trusted callbacks provided by the implementing class.

Trusted callbacks are public methods on the implementing class and can be invoked via \Drupal\Core\Security\DoTrustedCallbackTrait::doTrustedCallback().

Return value

string[] List of method names implemented by the class that can be used as trusted callbacks.

Overrides TrustedCallbackInterface::trustedCallbacks

See also

\Drupal\Core\Security\DoTrustedCallbackTrait::doTrustedCallback()

6 calls to PluginBase::trustedCallbacks()
ArgumentPluginBase::trustedCallbacks in core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
Lists the trusted callbacks provided by the implementing class.
Custom::trustedCallbacks in core/modules/views/src/Plugin/views/field/Custom.php
Lists the trusted callbacks provided by the implementing class.
DisplayPluginBase::trustedCallbacks in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Lists the trusted callbacks provided by the implementing class.
FilterPluginBase::trustedCallbacks in core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
Lists the trusted callbacks provided by the implementing class.
SortPluginBase::trustedCallbacks in core/modules/views/src/Plugin/views/sort/SortPluginBase.php
Lists the trusted callbacks provided by the implementing class.

... See full list

6 methods override PluginBase::trustedCallbacks()
ArgumentPluginBase::trustedCallbacks in core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
Lists the trusted callbacks provided by the implementing class.
Custom::trustedCallbacks in core/modules/views/src/Plugin/views/field/Custom.php
Lists the trusted callbacks provided by the implementing class.
DisplayPluginBase::trustedCallbacks in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Lists the trusted callbacks provided by the implementing class.
FilterPluginBase::trustedCallbacks in core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
Lists the trusted callbacks provided by the implementing class.
SortPluginBase::trustedCallbacks in core/modules/views/src/Plugin/views/sort/SortPluginBase.php
Lists the trusted callbacks provided by the implementing class.

... See full list

File

core/modules/views/src/Plugin/views/PluginBase.php, line 277

Class

PluginBase
Base class for any views plugin types.

Namespace

Drupal\views\Plugin\views

Code

public static function trustedCallbacks() {
  return [
    'preRenderAddFieldsetMarkup',
  ];
}