interface FarmFieldFactoryInterface in farmOS 2.x
Provides an interface for defining a farmOS field factory.
Hierarchy
- interface \Drupal\farm_field\FarmFieldFactoryInterface
Expanded class hierarchy of FarmFieldFactoryInterface
All classes that implement FarmFieldFactoryInterface
1 file declares its use of FarmFieldFactoryInterface
- FarmEntityTypeBase.php in modules/
core/ entity/ src/ FarmEntityTypeBase.php
File
- modules/
core/ field/ src/ FarmFieldFactoryInterface.php, line 11
Namespace
Drupal\farm_fieldView source
interface FarmFieldFactoryInterface {
/**
* Generate a base field definition.
*
* @param array $options
* An array of options.
*
* @return \Drupal\Core\Field\BaseFieldDefinition
* Returns a base field definition.
*/
public function baseFieldDefinition(array $options = []) : BaseFieldDefinition;
/**
* Generates a bundle field definition.
*
* @param array $options
* An array of options.
*
* @return \Drupal\entity\BundleFieldDefinition
* Returns a bundle field definition.
*/
public function bundleFieldDefinition(array $options = []) : BundleFieldDefinition;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FarmFieldFactoryInterface:: |
public | function | Generate a base field definition. | 1 |
FarmFieldFactoryInterface:: |
public | function | Generates a bundle field definition. | 1 |