diff --git a/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/Type/SelectionPluginManager.php b/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/Type/SelectionPluginManager.php index 7b9d1a2..973fba7 100644 --- a/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/Type/SelectionPluginManager.php +++ b/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/Type/SelectionPluginManager.php @@ -30,7 +30,7 @@ public function __construct() { } /** - * Overrides Drupal\Component\Plugin\PluginManagerBase::createInstace(). + * Overrides Drupal\Component\Plugin\PluginManagerBase::createInstance(). */ public function createInstance($plugin_id, array $configuration = array()) { // We want to provide a broken handler class whenever a class is not found. diff --git a/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/field/formatter/EntityReferenceFormatterBase.php b/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/field/formatter/EntityReferenceFormatterBase.php index ed8dc2e..d730925 100644 --- a/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/field/formatter/EntityReferenceFormatterBase.php +++ b/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/field/formatter/EntityReferenceFormatterBase.php @@ -83,8 +83,8 @@ public function prepareView(array $entities, $langcode, array &$items) { } } else { - // This is an "auto_create" item, so allow access to it, as the entity doesn't - // exists yet, and we are probably in a preview. + // This is an "auto_create" item, so allow access to it, as the entity + // doesn't exists yet, and we are probably in a preview. $items[$id][$delta]['entity'] = FALSE; // Add the label as a special key, as we cannot use entity_label(). $items[$id][$delta]['label'] = $item['label']; diff --git a/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/field/widget/AutocompleteTagsWidget.php b/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/field/widget/AutocompleteTagsWidget.php index a731270..8d5c5cf 100644 --- a/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/field/widget/AutocompleteTagsWidget.php +++ b/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/field/widget/AutocompleteTagsWidget.php @@ -54,8 +54,8 @@ public function elementValidate($element, &$form_state, $form) { $match = $matches[1]; } else { - // Try to get a match from the input string when the user didn't use the - // autocomplete but filled in a value manually. + // Try to get a match from the input string when the user didn't use + // the autocomplete but filled in a value manually. $match = $handler->validateAutocompleteInput($entity, $element, $form_state, $form, !$auto_create); } diff --git a/core/modules/views/lib/Drupal/views/Plugin/entity_reference/selection/ViewsSelection.php b/core/modules/views/lib/Drupal/views/Plugin/entity_reference/selection/ViewsSelection.php index ce8a7d7..af709df 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/entity_reference/selection/ViewsSelection.php +++ b/core/modules/views/lib/Drupal/views/Plugin/entity_reference/selection/ViewsSelection.php @@ -208,15 +208,15 @@ public function settingsFormValidate($element, &$form_state, $form) { return; } - // Explode the 'arguments' string into an actual array. Beware, explode() turns an - // empty string into an array with one empty string. We'll need an empty array - // instead. + // Explode the 'arguments' string into an actual array. Beware, explode() + // turns an empty string into an array with one empty string. We'll need an + // empty array instead. $arguments_string = trim($element['arguments']['#value']); if ($arguments_string === '') { $arguments = array(); } else { - // array_map is called to trim whitespaces from the arguments. + // array_map() is called to trim whitespaces from the arguments. $arguments = array_map('trim', explode(',', $arguments_string)); }