Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ViewsHandlerInterface.php

function ViewsHandlerInterface::sanitizeValue

Sanitize the value for output.

Parameters

$value: The value being rendered.

$type: The type of sanitization needed. If not provided, \Drupal\Component\Utility\Html::escape() is used.

Return value

\Drupal\views\Render\ViewsRenderPipelineMarkup Returns the safe value.

1 method overrides ViewsHandlerInterface::sanitizeValue()
HandlerBase::sanitizeValue in core/modules/views/src/Plugin/views/HandlerBase.php
Sanitize the value for output.

File

core/modules/views/src/Plugin/views/ViewsHandlerInterface.php, line 78

Class

ViewsHandlerInterface
Provides an interface for all views handlers.

Namespace

Drupal\views\Plugin\views

Code

public function sanitizeValue($value, $type = NULL);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal