diff -u b/core/includes/entity.inc b/core/includes/entity.inc --- b/core/includes/entity.inc +++ b/core/includes/entity.inc @@ -567,7 +567,7 @@ * Returns the entity_display object configured for a bundle and view mode. * * The function reads the entity_display object from the current configuration, - * or returns a ready-to-use empty one (with no cmponent set to be displayed) + * or returns a ready-to-use empty one (with no component set to be displayed) * if no display is currently configured yet for this bundle and view mode. We * do not preemptively create new empty entity_display configuration entries * for each existing entity type and bundle whenever a new view mode becomes @@ -578,8 +578,8 @@ * * Note that the entity_display is only actually used at render time if the view * mode itself is configured to use dedicated display settings for the bundle - * (if not, the entity_display for the 'default' view mode is used intead). - * Thus, when fecthing the display object to use for rendering an entity, the + * (if not, the entity_display for the 'default' view mode is used instead). + * Thus, when fetching the display object to use for rendering an entity, the * field_get_actual_view_mode() function is used first to determine which * display to load. * diff -u b/core/modules/entity/lib/Drupal/entity/Plugin/Core/Entity/EntityDisplay.php b/core/modules/entity/lib/Drupal/entity/Plugin/Core/Entity/EntityDisplay.php --- b/core/modules/entity/lib/Drupal/entity/Plugin/Core/Entity/EntityDisplay.php +++ b/core/modules/entity/lib/Drupal/entity/Plugin/Core/Entity/EntityDisplay.php @@ -18,7 +18,7 @@ * @Plugin( * id = "entity_display", * label = @Translation("Entity display"), - * module = "field", + * module = "entity", * controller_class = "Drupal\Core\Config\Entity\ConfigStorageController", * config_prefix = "entity.display", * entity_keys = { @@ -177,7 +177,7 @@ * The name of the component. * * @return array|null - * The display options for the comppnent, or NULL if the component is not + * The display options for the component, or NULL if the component is not * displayed. */ public function getComponent($name) { diff -u b/core/modules/entity/lib/Drupal/entity/Tests/EntityDisplayTest.php b/core/modules/entity/lib/Drupal/entity/Tests/EntityDisplayTest.php --- b/core/modules/entity/lib/Drupal/entity/Tests/EntityDisplayTest.php +++ b/core/modules/entity/lib/Drupal/entity/Tests/EntityDisplayTest.php @@ -107,7 +107,7 @@ } /** - * Tests the behavior of a field conponent within an EntityDisplay object. + * Tests the behavior of a field component within an EntityDisplay object. */ public function testExtraFieldComponent() { $display = entity_create('entity_display', array( @@ -129,7 +129,7 @@ } /** - * Tests the behavior of a field conponent within an EntityDisplay object. + * Tests the behavior of a field component within an EntityDisplay object. */ public function testFieldComponent() { $this->enableModules(array('field_sql_storage', 'field_test')); diff -u b/core/modules/field/field.install b/core/modules/field/field.install --- b/core/modules/field/field.install +++ b/core/modules/field/field.install @@ -460,7 +460,7 @@ // Set options in the display. $new_options = array('visible' => $display_options['visible']); - // The display object only stores the weght for 'visible' extra fields. + // The display object only stores the weight for 'visible' extra fields. if ($display_options['visible']) { $new_options['weight'] = $display_options['weight']; } diff -u b/core/modules/field/lib/Drupal/field/Plugin/Type/Formatter/FormatterPluginManager.php b/core/modules/field/lib/Drupal/field/Plugin/Type/Formatter/FormatterPluginManager.php --- b/core/modules/field/lib/Drupal/field/Plugin/Type/Formatter/FormatterPluginManager.php +++ b/core/modules/field/lib/Drupal/field/Plugin/Type/Formatter/FormatterPluginManager.php @@ -46,7 +46,7 @@ * * @param array $options * An array with the following key/value pairs: - * - instance; (FieldInstance) The field instance. + * - instance: (FieldInstance) The field instance. * - view_mode: (string) The view mode. * - prepare: (bool, optional) Whether default values should get merged in * the 'configuration' array. Defaults to TRUE.