TestMultipleEntityTypeField.php in Display Suite 8.4
Same filename and directory in other branches
Namespace
Drupal\ds_test\Plugin\DsFieldFile
tests/modules/ds_test/src/Plugin/DsField/TestMultipleEntityTypeField.phpView source
<?php
namespace Drupal\ds_test\Plugin\DsField;
use Drupal\ds\Plugin\DsField\DsFieldBase;
/**
* Multiple entity type field plugin.
*
* @DsField(
* id = "test_multiple_entity_test_field",
* title = @Translation("Multiple entity test field plugin"),
* entity_type = {"node", "user"}
* )
*/
class TestMultipleEntityTypeField extends DsFieldBase {
/**
* {@inheritdoc}
*/
public function build() {
return [
'#markup' => 'Multiple entity test field plugin',
];
}
}
Classes
Name![]() |
Description |
---|---|
TestMultipleEntityTypeField | Multiple entity type field plugin. |