Skip to content
Snippets Groups Projects
Commit 7b5662f5 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #3083444 by alisonjo315: Duplicate "attributes" in docblock

parent 5a7951f2
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
...@@ -277,7 +277,6 @@ function image_style_options($include_empty = TRUE) { ...@@ -277,7 +277,6 @@ function image_style_options($include_empty = TRUE) {
* - width: The width of the image. * - width: The width of the image.
* - height: The height of the image. * - height: The height of the image.
* - style_name: The name of the image style to be applied. * - style_name: The name of the image style to be applied.
* - attributes: Additional attributes to apply to the image.
* - uri: URI of the source image before styling. * - uri: URI of the source image before styling.
* - alt: The alternative text for text-based browsers. HTML 4 and XHTML 1.0 * - alt: The alternative text for text-based browsers. HTML 4 and XHTML 1.0
* always require an alt attribute. The HTML 5 draft allows the alt * always require an alt attribute. The HTML 5 draft allows the alt
...@@ -291,7 +290,8 @@ function image_style_options($include_empty = TRUE) { ...@@ -291,7 +290,8 @@ function image_style_options($include_empty = TRUE) {
* - http://dev.w3.org/html5/spec/Overview.html#alt * - http://dev.w3.org/html5/spec/Overview.html#alt
* - title: The title text is displayed when the image is hovered in some * - title: The title text is displayed when the image is hovered in some
* popular browsers. * popular browsers.
* - attributes: Associative array of attributes to be placed in the img tag. * - attributes: Associative array of additional attributes to be placed in
* the img tag.
*/ */
function template_preprocess_image_style(&$variables) { function template_preprocess_image_style(&$variables) {
$style = ImageStyle::load($variables['style_name']); $style = ImageStyle::load($variables['style_name']);
......
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