function StubFieldItemBase::schema

Overrides FieldItemInterface::schema

File

core/tests/Drupal/Tests/Core/Entity/StubFieldItemBase.php, line 29

Class

StubFieldItemBase
A stub field item base entity for testing purposes.

Namespace

Drupal\Tests\Core\Entity

Code

public static function schema(FieldStorageDefinitionInterface $field_definition) : array {
    return [];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.