interface RequiredFieldStorageDefinitionInterface

Same name in other branches
  1. 9 core/lib/Drupal/Core/Field/RequiredFieldStorageDefinitionInterface.php \Drupal\Core\Field\RequiredFieldStorageDefinitionInterface
  2. 8.9.x core/lib/Drupal/Core/Field/RequiredFieldStorageDefinitionInterface.php \Drupal\Core\Field\RequiredFieldStorageDefinitionInterface
  3. 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

Title Sort descending Modifiers Object type Summary Overrides
RequiredFieldStorageDefinitionInterface::isStorageRequired public function Returns whether the field storage is required. 1

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