diff --git a/core/lib/Drupal/Core/Field/FieldConfigBase.php b/core/lib/Drupal/Core/Field/FieldConfigBase.php index 8f041ad0250f768c6ac3ca7af1a35a9b981fca6e..922eba4f25d9ccc7cc8919b56d0f5edde48ed0e7 100644 --- a/core/lib/Drupal/Core/Field/FieldConfigBase.php +++ b/core/lib/Drupal/Core/Field/FieldConfigBase.php @@ -125,9 +125,10 @@ abstract class FieldConfigBase extends ConfigEntityBase implements FieldConfigIn * * The default value is expressed as a numerically indexed array of items, * each item being an array of key/value pairs matching the set of 'columns' - * defined by the "field schema" for the field type, as exposed in - * hook_field_schema(). If the number of items exceeds the cardinality of the - * field, extraneous items will be ignored. + * defined by the "field schema" for the field type, as exposed in the class + * implementing \Drupal\Core\Field\FieldItemInterface::schema() method. If the + * number of items exceeds the cardinality of the field, extraneous items will + * be ignored. * * This property is overlooked if the $default_value_callback is non-empty. * diff --git a/core/modules/field/field.api.php b/core/modules/field/field.api.php index 36e5fcefe9d615e87fe1bf5772cde48dfbb8da68..557ff58057f83db43215b0c6a918a560ba5d8467 100644 --- a/core/modules/field/field.api.php +++ b/core/modules/field/field.api.php @@ -17,8 +17,8 @@ * * In the Field API, each field has a type, which determines what kind of data * (integer, string, date, etc.) the field can hold, which settings it provides, - * and so on. The data type(s) accepted by a field are defined in - * hook_field_schema(). + * and so on. The data type(s) accepted by a field are defined in the class + * implementing \Drupal\Core\Field\FieldItemInterface::schema() method. * * Field types are plugins annotated with class * \Drupal\Core\Field\Annotation\FieldType, and implement plugin interface diff --git a/core/modules/field/src/Entity/FieldStorageConfig.php b/core/modules/field/src/Entity/FieldStorageConfig.php index 3bd70036259a73b42025d1e312d05eaef3db8036..250edd6e8dc697aa79b4cd9e516e83c1bb23a097 100644 --- a/core/modules/field/src/Entity/FieldStorageConfig.php +++ b/core/modules/field/src/Entity/FieldStorageConfig.php @@ -175,12 +175,14 @@ class FieldStorageConfig extends ConfigEntityBase implements FieldStorageConfigI * The custom storage indexes for the field data storage. * * This set of indexes is merged with the "default" indexes specified by the - * field type in hook_field_schema() to determine the actual set of indexes - * that get created. + * field type in the class implementing + * \Drupal\Core\Field\FieldItemInterface::schema() method to determine the + * actual set of indexes that get created. * * The indexes are defined using the same definition format as Schema API * index specifications. Only columns that are part of the field schema, as - * defined by the field type in hook_field_schema(), are allowed. + * defined by the field type in the class implementing + * \Drupal\Core\Field\FieldItemInterface::schema() method, are allowed. * * Some storage backends might not support indexes, and discard that * information.