Skip to content
Snippets Groups Projects
Commit a678efd6 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

Issue #2308707 by eojthebrave: Field widget @defgroup references wrong class in documentation.

parent d1f6df12
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
* hook_field_schema(). * hook_field_schema().
* *
* Field types are plugins annotated with class * Field types are plugins annotated with class
* \Drupal\Core\Entity\Annotation\FieldType, and implement plugin interface * \Drupal\Core\Field\Annotation\FieldType, and implement plugin interface
* \Drupal\Core\Field\FieldItemInterface. Field Type plugins are managed by the * \Drupal\Core\Field\FieldItemInterface. Field Type plugins are managed by the
* \Drupal\Core\Field\FieldTypePluginManager class. Field type classes usually * \Drupal\Core\Field\FieldTypePluginManager class. Field type classes usually
* extend base class \Drupal\Core\Field\FieldItemBase. Field-type plugins need * extend base class \Drupal\Core\Field\FieldItemBase. Field-type plugins need
...@@ -172,7 +172,7 @@ function hook_field_widget_WIDGET_TYPE_form_alter(&$element, &$form_state, $cont ...@@ -172,7 +172,7 @@ function hook_field_widget_WIDGET_TYPE_form_alter(&$element, &$form_state, $cont
* *
* Formatters are Plugins managed by the * Formatters are Plugins managed by the
* \Drupal\Core\Field\FormatterPluginManager class. A formatter is a plugin * \Drupal\Core\Field\FormatterPluginManager class. A formatter is a plugin
* annotated with class \Drupal\Core\Entity\Annotation\FieldFormatter that * annotated with class \Drupal\Core\Field\Annotation\FieldFormatter that
* implements \Drupal\Core\Field\FormatterInterface (in most cases, by * implements \Drupal\Core\Field\FormatterInterface (in most cases, by
* subclassing \Drupal\Core\Field\FormatterBase). Formatter plugins need to be * subclassing \Drupal\Core\Field\FormatterBase). Formatter plugins need to be
* in the namespace \Drupal\{your_module}\Plugin\Field\FieldFormatter. * in the namespace \Drupal\{your_module}\Plugin\Field\FieldFormatter.
...@@ -247,7 +247,7 @@ function hook_field_info_max_weight($entity_type, $bundle, $context, $context_mo ...@@ -247,7 +247,7 @@ function hook_field_info_max_weight($entity_type, $bundle, $context, $context_mo
* that cannot be updated. * that cannot be updated.
* *
* To forbid the update from occurring, throw a * To forbid the update from occurring, throw a
* \Drupal\Core\Entity\Exception\StorageDefinitionUpdateForbiddenException. * \Drupal\Core\Entity\Exception\FieldStorageDefinitionUpdateForbiddenException.
* *
* @param \Drupal\field\FieldStorageConfigInterface $field_storage * @param \Drupal\field\FieldStorageConfigInterface $field_storage
* The field storage as it will be post-update. * The field storage as it will be post-update.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment