You are here

interface RequiredFieldStorageDefinitionInterface in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Field/RequiredFieldStorageDefinitionInterface.php \Drupal\Core\Field\RequiredFieldStorageDefinitionInterface
  2. 10 core/lib/Drupal/Core/Field/RequiredFieldStorageDefinitionInterface.php \Drupal\Core\Field\RequiredFieldStorageDefinitionInterface

Defines an interface for required field storage definitions.

Hierarchy

Expanded class hierarchy of RequiredFieldStorageDefinitionInterface

All classes that implement RequiredFieldStorageDefinitionInterface

1 file declares its use of RequiredFieldStorageDefinitionInterface
CommentStorageSchema.php in core/modules/comment/src/CommentStorageSchema.php

File

core/lib/Drupal/Core/Field/RequiredFieldStorageDefinitionInterface.php, line 8

Namespace

Drupal\Core\Field
View source
interface RequiredFieldStorageDefinitionInterface {

  /**
   * Returns whether the field storage is required.
   *
   * If a field storage is required, NOT NULL constraints will be added
   * automatically for the required properties of a field type.
   *
   * @return bool
   *   TRUE if the field storage is required, FALSE otherwise.
   */
  public function isStorageRequired();

}

Members

Namesort descending Modifiers Type Description Overrides
RequiredFieldStorageDefinitionInterface::isStorageRequired public function Returns whether the field storage is required. 1