You are here

public function FarmFieldFactoryInterface::baseFieldDefinition in farmOS 2.x

Generate a base field definition.

Parameters

array $options: An array of options.

Return value

\Drupal\Core\Field\BaseFieldDefinition Returns a base field definition.

1 method overrides FarmFieldFactoryInterface::baseFieldDefinition()
FarmFieldFactory::baseFieldDefinition in modules/core/field/src/FarmFieldFactory.php
Generate a base field definition.

File

modules/core/field/src/FarmFieldFactoryInterface.php, line 22

Class

FarmFieldFactoryInterface
Provides an interface for defining a farmOS field factory.

Namespace

Drupal\farm_field

Code

public function baseFieldDefinition(array $options = []) : BaseFieldDefinition;