Commit 026e9d87 authored by alexpott's avatar alexpott
Browse files

Issue #2549091 by Pravin Ajaaz, jhodgdon: Fix "associated to" ==> "associated with"

parent f1a0e7c0
...@@ -403,7 +403,7 @@ function entity_view_multiple(array $entities, $view_mode, $langcode = NULL, $re ...@@ -403,7 +403,7 @@ function entity_view_multiple(array $entities, $view_mode, $langcode = NULL, $re
} }
/** /**
* Returns the entity view display associated to a bundle and view mode. * Returns the entity view display associated with a bundle and view mode.
* *
* Use this function when assigning suggested display options for a component * Use this function when assigning suggested display options for a component
* in a given view mode. Note that they will only be actually used at render * in a given view mode. Note that they will only be actually used at render
...@@ -439,7 +439,7 @@ function entity_view_multiple(array $entities, $view_mode, $langcode = NULL, $re ...@@ -439,7 +439,7 @@ function entity_view_multiple(array $entities, $view_mode, $langcode = NULL, $re
* this bundle. * this bundle.
* *
* @return \Drupal\Core\Entity\Display\EntityViewDisplayInterface * @return \Drupal\Core\Entity\Display\EntityViewDisplayInterface
* The entity view display associated to the view mode. * The entity view display associated with the view mode.
* *
* @deprecated as of Drupal 8.0.x, will be removed before Drupal 9.0.0. * @deprecated as of Drupal 8.0.x, will be removed before Drupal 9.0.0.
* If the display is available in configuration use: * If the display is available in configuration use:
...@@ -483,7 +483,7 @@ function entity_get_display($entity_type, $bundle, $view_mode) { ...@@ -483,7 +483,7 @@ function entity_get_display($entity_type, $bundle, $view_mode) {
} }
/** /**
* Returns the entity form display associated to a bundle and form mode. * Returns the entity form display associated with a bundle and form mode.
* *
* The function reads the entity form display object from the current * The function reads the entity form display object from the current
* configuration, or returns a ready-to-use empty one if no configuration entry * configuration, or returns a ready-to-use empty one if no configuration entry
...@@ -515,7 +515,7 @@ function entity_get_display($entity_type, $bundle, $view_mode) { ...@@ -515,7 +515,7 @@ function entity_get_display($entity_type, $bundle, $view_mode) {
* The form mode. * The form mode.
* *
* @return \Drupal\Core\Entity\Display\EntityFormDisplayInterface * @return \Drupal\Core\Entity\Display\EntityFormDisplayInterface
* The entity form display associated to the given form mode. * The entity form display associated with the given form mode.
* *
* @deprecated as of Drupal 8.0.x, will be removed before Drupal 9.0.0. * @deprecated as of Drupal 8.0.x, will be removed before Drupal 9.0.0.
* If the entity form display is available in configuration use: * If the entity form display is available in configuration use:
......
...@@ -46,7 +46,7 @@ public function createInstance($plugin_id, array $configuration = array()) { ...@@ -46,7 +46,7 @@ public function createInstance($plugin_id, array $configuration = array()) {
* @param string $plugin_id * @param string $plugin_id
* The identifier of the plugin implementation. * The identifier of the plugin implementation.
* @param mixed $plugin_definition * @param mixed $plugin_definition
* The definition associated to the plugin_id. * The definition associated with the plugin_id.
* @param array $configuration * @param array $configuration
* An array of configuration that may be passed to the instance. * An array of configuration that may be passed to the instance.
* *
......
...@@ -49,7 +49,7 @@ class EntityFormDisplay extends EntityDisplayBase implements EntityFormDisplayIn ...@@ -49,7 +49,7 @@ class EntityFormDisplay extends EntityDisplayBase implements EntityFormDisplayIn
* Returns the entity_form_display object used to build an entity form. * Returns the entity_form_display object used to build an entity form.
* *
* Depending on the configuration of the form mode for the entity bundle, this * Depending on the configuration of the form mode for the entity bundle, this
* can be either the display object associated to the form mode, or the * can be either the display object associated with the form mode, or the
* 'default' display. * 'default' display.
* *
* This method should only be used internally when rendering an entity form. * This method should only be used internally when rendering an entity form.
......
...@@ -46,8 +46,8 @@ class EntityViewDisplay extends EntityDisplayBase implements EntityViewDisplayIn ...@@ -46,8 +46,8 @@ class EntityViewDisplay extends EntityDisplayBase implements EntityViewDisplayIn
* Returns the display objects used to render a set of entities. * Returns the display objects used to render a set of entities.
* *
* Depending on the configuration of the view mode for each bundle, this can * Depending on the configuration of the view mode for each bundle, this can
* be either the display object associated to the view mode, or the 'default' * be either the display object associated with the view mode, or the
* display. * 'default' display.
* *
* This method should only be used internally when rendering an entity. When * This method should only be used internally when rendering an entity. When
* assigning suggested display options for a component in a given view mode, * assigning suggested display options for a component in a given view mode,
......
...@@ -442,8 +442,8 @@ ...@@ -442,8 +442,8 @@
empty: { empty: {
// 'keyup' is the (native DOM) event that we watch for. // 'keyup' is the (native DOM) event that we watch for.
keyup: function () { keyup: function () {
// The function associated to that trigger returns the new value for the // The function associated with that trigger returns the new value for
// state. // the state.
return this.val() === ''; return this.val() === '';
} }
}, },
......
...@@ -78,7 +78,7 @@ class FieldConfig extends FieldConfigBase implements FieldConfigInterface { ...@@ -78,7 +78,7 @@ class FieldConfig extends FieldConfigBase implements FieldConfigInterface {
* *
* @param array $values * @param array $values
* An array of field properties, keyed by property name. The * An array of field properties, keyed by property name. The
* storage associated to the field can be specified either with: * storage associated with the field can be specified either with:
* - field_storage: the FieldStorageConfigInterface object, * - field_storage: the FieldStorageConfigInterface object,
* or by referring to an existing field storage in the current configuration * or by referring to an existing field storage in the current configuration
* with: * with:
......
...@@ -1274,7 +1274,7 @@ function template_preprocess_file_link(&$variables) { ...@@ -1274,7 +1274,7 @@ function template_preprocess_file_link(&$variables) {
* A MIME type. * A MIME type.
* *
* @return string * @return string
* A class associated to the file. * A class associated with the file.
*/ */
function file_icon_class($mime_type) { function file_icon_class($mime_type) {
// Search for a group with the files MIME type. // Search for a group with the files MIME type.
......
...@@ -126,7 +126,7 @@ public function helpPage($name) { ...@@ -126,7 +126,7 @@ public function helpPage($name) {
} }
// Only print list of administration pages if the module in question has // Only print list of administration pages if the module in question has
// any such pages associated to it. // any such pages associated with it.
$admin_tasks = system_get_module_admin_tasks($name, system_get_info('module', $name)); $admin_tasks = system_get_module_admin_tasks($name, system_get_info('module', $name));
if (!empty($admin_tasks)) { if (!empty($admin_tasks)) {
$links = array(); $links = array();
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
* particular logic to return a language code. For instance, the URL method * particular logic to return a language code. For instance, the URL method
* searches for a valid path prefix or domain name in the current request URL. * searches for a valid path prefix or domain name in the current request URL.
* If a language negotiation method does not return a valid language code, the * If a language negotiation method does not return a valid language code, the
* next method associated to the language type (based on method weight) is * next method associated with the language type (based on method weight) is
* invoked. * invoked.
* *
* Modules can define additional language negotiation methods by simply provide * Modules can define additional language negotiation methods by simply provide
......
...@@ -243,9 +243,10 @@ function deleteCustomMenu() { ...@@ -243,9 +243,10 @@ function deleteCustomMenu() {
$this->assertResponse(200); $this->assertResponse(200);
$this->assertRaw(t('The menu %title has been deleted.', array('%title' => $label)), 'Custom menu was deleted'); $this->assertRaw(t('The menu %title has been deleted.', array('%title' => $label)), 'Custom menu was deleted');
$this->assertNull(Menu::load($menu_name), 'Custom menu was deleted'); $this->assertNull(Menu::load($menu_name), 'Custom menu was deleted');
// Test if all menu links associated to the menu were removed from database. // Test if all menu links associated with the menu were removed from
// database.
$result = entity_load_multiple_by_properties('menu_link_content', array('menu_name' => $menu_name)); $result = entity_load_multiple_by_properties('menu_link_content', array('menu_name' => $menu_name));
$this->assertFalse($result, 'All menu links associated to the custom menu were deleted.'); $this->assertFalse($result, 'All menu links associated with the custom menu were deleted.');
// Make sure there's no delete button on system menus. // Make sure there's no delete button on system menus.
$this->drupalGet('admin/structure/menu/manage/main'); $this->drupalGet('admin/structure/menu/manage/main');
......
...@@ -39,7 +39,7 @@ function rdf_help($route_name, RouteMatchInterface $route_match) { ...@@ -39,7 +39,7 @@ function rdf_help($route_name, RouteMatchInterface $route_match) {
* themes are coded to be RDFa compatible. * themes are coded to be RDFa compatible.
*/ */
/** /**
* Returns the RDF mapping object associated to a bundle. * Returns the RDF mapping object associated with a bundle.
* *
* The function reads the rdf_mapping object from the current configuration, * The function reads the rdf_mapping object from the current configuration,
* or returns a ready-to-use empty one if no configuration entry exists yet for * or returns a ready-to-use empty one if no configuration entry exists yet for
......
...@@ -18,8 +18,7 @@ ...@@ -18,8 +18,7 @@
class ShortcutController extends ControllerBase { class ShortcutController extends ControllerBase {
/** /**
* Returns a rendered edit form to create a new shortcut associated to the * Returns a form to add a new shortcut to a given set.
* given shortcut set.
* *
* @param \Drupal\shortcut\ShortcutSetInterface $shortcut_set * @param \Drupal\shortcut\ShortcutSetInterface $shortcut_set
* The shortcut set this shortcut will be added to. * The shortcut set this shortcut will be added to.
......
...@@ -600,7 +600,7 @@ function entity_test_field_default_value(FieldableEntityInterface $entity, Field ...@@ -600,7 +600,7 @@ function entity_test_field_default_value(FieldableEntityInterface $entity, Field
* @param string $hook * @param string $hook
* The hook name. * The hook name.
* @param mixed $data * @param mixed $data
* Arbitrary data associated to the hook invocation. * Arbitrary data associated with the hook invocation.
*/ */
function _entity_test_record_hooks($hook, $data) { function _entity_test_record_hooks($hook, $data) {
$state = \Drupal::state(); $state = \Drupal::state();
......
...@@ -32,7 +32,7 @@ public function getTitle(TermInterface $term) { ...@@ -32,7 +32,7 @@ public function getTitle(TermInterface $term) {
} }
/** /**
* Returns a rendered edit form to create a new term associated to the given vocabulary. * Returns a form to add a new term to a vocabulary.
* *
* @param \Drupal\taxonomy\VocabularyInterface $taxonomy_vocabulary * @param \Drupal\taxonomy\VocabularyInterface $taxonomy_vocabulary
* The vocabulary this term will be added to. * The vocabulary this term will be added to.
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
abstract class EntityTranslationRendererBase extends RendererBase { abstract class EntityTranslationRendererBase extends RendererBase {
/** /**
* Returns the language code associated to the given row. * Returns the language code associated with the given row.
* *
* @param \Drupal\views\ResultRow $row * @param \Drupal\views\ResultRow $row
* The result row. * The result row.
......
...@@ -232,7 +232,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) { ...@@ -232,7 +232,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['caption'] = array( $form['caption'] = array(
'#type' => 'textfield', '#type' => 'textfield',
'#title' => $this->t('Caption for the table'), '#title' => $this->t('Caption for the table'),
'#description' => $this->t('A title which is semantically associated to your table for increased accessibility.'), '#description' => $this->t('A title semantically associated with your table for increased accessibility.'),
'#default_value' => $this->options['caption'], '#default_value' => $this->options['caption'],
'#maxlength' => 255, '#maxlength' => 255,
); );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment