Loading core/lib/Drupal/Core/Field/FieldConfigBase.php +4 −3 Original line number Diff line number Diff line Loading @@ -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. * Loading core/modules/field/field.api.php +2 −2 Original line number Diff line number Diff line Loading @@ -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 Loading core/modules/field/src/Entity/FieldStorageConfig.php +5 −3 Original line number Diff line number Diff line Loading @@ -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. Loading Loading
core/lib/Drupal/Core/Field/FieldConfigBase.php +4 −3 Original line number Diff line number Diff line Loading @@ -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. * Loading
core/modules/field/field.api.php +2 −2 Original line number Diff line number Diff line Loading @@ -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 Loading
core/modules/field/src/Entity/FieldStorageConfig.php +5 −3 Original line number Diff line number Diff line Loading @@ -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. Loading