You are here

public function TestField::isEmpty in Media entity slideshow 8

Same name and namespace in other branches
  1. 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\Unit

Code

public function isEmpty() {
  return !isset($this->property);
}