function ViewsHandlerInterface::sanitizeValue

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/ViewsHandlerInterface.php \Drupal\views\Plugin\views\ViewsHandlerInterface::sanitizeValue()
  2. 8.9.x core/modules/views/src/Plugin/views/ViewsHandlerInterface.php \Drupal\views\Plugin\views\ViewsHandlerInterface::sanitizeValue()
  3. 11.x core/modules/views/src/Plugin/views/ViewsHandlerInterface.php \Drupal\views\Plugin\views\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);

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