You are here

public static function MediaEmbed::trustedCallbacks in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/media/src/Plugin/Filter/MediaEmbed.php \Drupal\media\Plugin\Filter\MediaEmbed::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()

File

core/modules/media/src/Plugin/Filter/MediaEmbed.php, line 513

Class

MediaEmbed
Provides a filter to embed media items using a custom tag.

Namespace

Drupal\media\Plugin\Filter

Code

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