You are here

public function MediaLibrarySelectForm::render in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/media_library/src/Plugin/views/field/MediaLibrarySelectForm.php \Drupal\media_library\Plugin\views\field\MediaLibrarySelectForm::render()

Renders the field.

Parameters

\Drupal\views\ResultRow $values: The values retrieved from a single row of a view's query result.

Return value

string|\Drupal\Component\Render\MarkupInterface The rendered output. If the output is safe it will be wrapped in an object that implements MarkupInterface. If it is empty or unsafe it will be a string.

Overrides FieldPluginBase::render

File

core/modules/media_library/src/Plugin/views/field/MediaLibrarySelectForm.php, line 35

Class

MediaLibrarySelectForm
Defines a field that outputs a checkbox and form for selecting media.

Namespace

Drupal\media_library\Plugin\views\field

Code

public function render(ResultRow $values) {
  return ViewsRenderPipelineMarkup::create($this
    ->getValue($values));
}