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

8.0.x
Alex Pott 2015-08-18 13:10:00 +01:00
parent f1a0e7c04e
commit 026e9d8754
16 changed files with 23 additions and 23 deletions

View File

@ -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
* 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
* this bundle.
*
* @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.
* If the display is available in configuration use:
@ -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
* 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) {
* The form mode.
*
* @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.
* If the entity form display is available in configuration use:

View File

@ -46,7 +46,7 @@ class ReflectionFactory extends DefaultFactory {
* @param string $plugin_id
* The identifier of the plugin implementation.
* @param mixed $plugin_definition
* The definition associated to the plugin_id.
* The definition associated with the plugin_id.
* @param array $configuration
* An array of configuration that may be passed to the instance.
*

View File

@ -49,7 +49,7 @@ class EntityFormDisplay extends EntityDisplayBase implements EntityFormDisplayIn
* 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
* 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.
*
* This method should only be used internally when rendering an entity form.

View File

@ -46,8 +46,8 @@ class EntityViewDisplay extends EntityDisplayBase implements EntityViewDisplayIn
* Returns the display objects used to render a set of entities.
*
* 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'
* display.
* be either the display object associated with the view mode, or the
* 'default' display.
*
* This method should only be used internally when rendering an entity. When
* assigning suggested display options for a component in a given view mode,

View File

@ -442,8 +442,8 @@
empty: {
// 'keyup' is the (native DOM) event that we watch for.
keyup: function () {
// The function associated to that trigger returns the new value for the
// state.
// The function associated with that trigger returns the new value for
// the state.
return this.val() === '';
}
},

View File

@ -78,7 +78,7 @@ class FieldConfig extends FieldConfigBase implements FieldConfigInterface {
*
* @param array $values
* 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,
* or by referring to an existing field storage in the current configuration
* with:

View File

@ -1274,7 +1274,7 @@ function template_preprocess_file_link(&$variables) {
* A MIME type.
*
* @return string
* A class associated to the file.
* A class associated with the file.
*/
function file_icon_class($mime_type) {
// Search for a group with the files MIME type.

View File

@ -126,7 +126,7 @@ class HelpController extends ControllerBase {
}
// 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));
if (!empty($admin_tasks)) {
$links = array();

View File

@ -66,7 +66,7 @@ use Drupal\Core\Session\AccountInterface;
* 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.
* 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.
*
* Modules can define additional language negotiation methods by simply provide

View File

@ -243,9 +243,10 @@ class MenuTest extends MenuWebTestBase {
$this->assertResponse(200);
$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');
// 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));
$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.
$this->drupalGet('admin/structure/menu/manage/main');

View File

@ -39,7 +39,7 @@ function rdf_help($route_name, RouteMatchInterface $route_match) {
* 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,
* or returns a ready-to-use empty one if no configuration entry exists yet for

View File

@ -18,8 +18,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
class ShortcutController extends ControllerBase {
/**
* Returns a rendered edit form to create a new shortcut associated to the
* given shortcut set.
* Returns a form to add a new shortcut to a given set.
*
* @param \Drupal\shortcut\ShortcutSetInterface $shortcut_set
* The shortcut set this shortcut will be added to.

View File

@ -600,7 +600,7 @@ function entity_test_field_default_value(FieldableEntityInterface $entity, Field
* @param string $hook
* The hook name.
* @param mixed $data
* Arbitrary data associated to the hook invocation.
* Arbitrary data associated with the hook invocation.
*/
function _entity_test_record_hooks($hook, $data) {
$state = \Drupal::state();

View File

@ -32,7 +32,7 @@ class TaxonomyController extends ControllerBase {
}
/**
* 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
* The vocabulary this term will be added to.

View File

@ -16,7 +16,7 @@ use Drupal\views\ResultRow;
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
* The result row.

View File

@ -232,7 +232,7 @@ class Table extends StylePluginBase implements CacheablePluginInterface {
$form['caption'] = array(
'#type' => 'textfield',
'#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'],
'#maxlength' => 255,
);