FieldStorageDefinition.php

Same filename in other branches
  1. 8.9.x core/modules/system/tests/modules/entity_test/src/FieldStorageDefinition.php
  2. 10 core/modules/system/tests/modules/entity_test/src/FieldStorageDefinition.php
  3. 11.x core/modules/system/tests/modules/entity_test/src/FieldStorageDefinition.php

Namespace

Drupal\entity_test

File

core/modules/system/tests/modules/entity_test/src/FieldStorageDefinition.php

View source
<?php

namespace Drupal\entity_test;

use Drupal\Core\Field\BaseFieldDefinition;

/**
 * A custom field storage definition class.
 *
 * For convenience we extend from BaseFieldDefinition although this should not
 * implement FieldDefinitionInterface.
 *
 * @todo Provide and make use of a proper FieldStorageDefinition class instead:
 *   https://www.drupal.org/node/2280639.
 */
class FieldStorageDefinition extends BaseFieldDefinition {
    
    /**
     * {@inheritdoc}
     */
    public function isBaseField() {
        return FALSE;
    }

}

Classes

Title Deprecated Summary
FieldStorageDefinition A custom field storage definition class.

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