TestMultipleField.php in Display Suite 8.4
File
tests/modules/ds_test/src/Plugin/DsField/TestMultipleField.php
View source
<?php
namespace Drupal\ds_test\Plugin\DsField;
use Drupal\ds\Plugin\DsField\DsFieldBase;
class TestMultipleField extends DsFieldBase {
public function build() {
return [
0 => [
'#markup' => 'Test row one of multiple field plugin on node ' . $this
->entity()
->id(),
],
1 => [
'#markup' => 'Test row two of multiple field plugin on node ' . $this
->entity()
->id(),
],
];
}
public function isMultiple() {
return TRUE;
}
}