public function TestFieldZeroInt::build in Display Suite 8.2
Same name and namespace in other branches
- 8.4 tests/modules/ds_test/src/Plugin/DsField/TestFieldZeroInt.php \Drupal\ds_test\Plugin\DsField\TestFieldZeroInt::build()
- 8.3 tests/modules/ds_test/src/Plugin/DsField/TestFieldZeroInt.php \Drupal\ds_test\Plugin\DsField\TestFieldZeroInt::build()
Renders a field.
Overrides DsFieldBase::build
File
- tests/
modules/ ds_test/ src/ Plugin/ DsField/ TestFieldZeroInt.php, line 21
Class
- TestFieldZeroInt
- Test field plugin that returns zero as an integer.
Namespace
Drupal\ds_test\Plugin\DsFieldCode
public function build() {
return array(
'#markup' => 0,
);
}