StubFieldItemBase.php
Namespace
Drupal\Tests\Core\EntityFile
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ StubFieldItemBase.php
View source
<?php
declare (strict_types=1);
namespace Drupal\Tests\Core\Entity;
use Drupal\Core\Field\FieldItemBase;
use Drupal\Core\Field\FieldStorageDefinitionInterface;
/**
* A stub field item base entity for testing purposes.
*/
class StubFieldItemBase extends FieldItemBase {
public function __construct() {
// Force an empty constructor.
}
/**
* {@inheritdoc}
*/
public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition) : array {
return [];
}
/**
* {@inheritdoc}
*/
public static function schema(FieldStorageDefinitionInterface $field_definition) : array {
return [];
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
StubFieldItemBase | A stub field item base entity for testing purposes. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.