You are here

interface FarmFieldFactoryInterface in farmOS 2.x

Provides an interface for defining a farmOS field factory.

Hierarchy

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_field
View 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

Namesort descending Modifiers Type Description Overrides
FarmFieldFactoryInterface::baseFieldDefinition public function Generate a base field definition. 1
FarmFieldFactoryInterface::bundleFieldDefinition public function Generates a bundle field definition. 1