You are here

public function TestMultipleEntityTypeField::build in Display Suite 8.4

Same name and namespace in other branches
  1. 8.3 tests/modules/ds_test/src/Plugin/DsField/TestMultipleEntityTypeField.php \Drupal\ds_test\Plugin\DsField\TestMultipleEntityTypeField::build()

Renders a field.

Return value

array A renderable array representing the content of the field.

Overrides DsFieldBase::build

File

tests/modules/ds_test/src/Plugin/DsField/TestMultipleEntityTypeField.php, line 21

Class

TestMultipleEntityTypeField
Multiple entity type field plugin.

Namespace

Drupal\ds_test\Plugin\DsField

Code

public function build() {
  return [
    '#markup' => 'Multiple entity test field plugin',
  ];
}