RequiredFieldStorageDefinitionInterface.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/Field/RequiredFieldStorageDefinitionInterface.php
  2. 8.9.x core/lib/Drupal/Core/Field/RequiredFieldStorageDefinitionInterface.php
  3. 10 core/lib/Drupal/Core/Field/RequiredFieldStorageDefinitionInterface.php

Namespace

Drupal\Core\Field

File

core/lib/Drupal/Core/Field/RequiredFieldStorageDefinitionInterface.php

View source
<?php

namespace Drupal\Core\Field;


/**
 * Defines an interface for required field storage definitions.
 */
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();

}

Interfaces

Title Deprecated Summary
RequiredFieldStorageDefinitionInterface Defines an interface for required field storage definitions.

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