You are here

public function FieldFormButtonTest::getValue in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/tests/modules/views_test_data/src/Plugin/views/field/FieldFormButtonTest.php \Drupal\views_test_data\Plugin\views\field\FieldFormButtonTest::getValue()
  2. 9 core/modules/views/tests/modules/views_test_data/src/Plugin/views/field/FieldFormButtonTest.php \Drupal\views_test_data\Plugin\views\field\FieldFormButtonTest::getValue()

Overrides UncacheableFieldHandlerTrait::getValue

See also

\Drupal\views\Plugin\views\Field\FieldHandlerInterface::getValue()

File

core/modules/views/tests/modules/views_test_data/src/Plugin/views/field/FieldFormButtonTest.php, line 24

Class

FieldFormButtonTest
A handler to provide a field that is completely custom by the administrator.

Namespace

Drupal\views_test_data\Plugin\views\field

Code

public function getValue(ResultRow $row, $field = NULL) {
  return '<!--form-item-' . $this->options['id'] . '--' . $row->index . '-->';
}