It's a typo, basically:

 * Usage example:
 * @code
 * $form['homepage'] = array(
 *   '#type' => 'url',
 *   '#title' => t('Home Page'),
 *   '#size' => 30,
 *   ...
 * );
 * @end_code
 *
 * @see \Drupal\Core\Render\Element\Textfield
 *
 * @FormElement("url")

Found during class loading analysis here: https://www.drupal.org/node/1818628#comment-10218335 #1818628: Use Composer's optimized ClassLoader for Core/Component classes

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Issue category Bug because documentation errors are bugs.
Issue priority Normal because it's not that big a deal.
Unfrozen changes Unfrozen documentation improvement.
CommentFileSizeAuthor
#2 2551007_1.patch371 bytesmile23

Comments

Mile23 created an issue. See original summary.

mile23’s picture

Status: Active » Needs review
StatusFileSize
new371 bytes

Patch...

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

Hah, good catch and thanks for the patch!

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed e415ad4 and pushed to 8.0.x. Thanks!

  • alexpott committed e415ad4 on 8.0.x
    Issue #2551007 by Mile23: Drupal\Core\Render\Element\Url uses improper...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.