public function TestField::isEmpty in Media entity slideshow 8
Same name and namespace in other branches
- 8.2 tests/src/Unit/ConstraintsTest.php \Drupal\Tests\media_entity_slideshow\Unit\TestField::isEmpty()
Mocks isEmpty() on \Drupal\Core\Entity\Plugin\DataType\EntityAdapter.
File
- tests/
src/ Unit/ ConstraintsTest.php, line 116
Class
- TestField
- Mock class for fields to test the ItemsCount constraint.
Namespace
Drupal\Tests\media_entity_slideshow\UnitCode
public function isEmpty() {
return !isset($this->property);
}