TestMultipleField.php in Display Suite 8.2
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 array(
0 => array(
'#markup' => 'Test row one of multiple field plugin on node ' . $this
->entity()
->id(),
),
1 => array(
'#markup' => 'Test row two of multiple field plugin on node ' . $this
->entity()
->id(),
),
);
}
public function isMultiple() {
return TRUE;
}
}