Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
16 Apr 2015 at 14:38 UTC
Updated:
8 May 2015 at 01:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
googletorp commentedComment #2
jhodgdonThanks for the patch! Needs a bit of work though...
Is this returning a new instance of the class, or the current instance of the class?
If it's the current one, it should say
@return $this
with no description.
If it's a new instance, it should say
@return static
Can you also add a blank line before the @return? Also this @return needs documentation.
Comment #3
googletorp commentedThanks for the review.
Regarding setTargetType, for all entity interfaces that I've seeen (like NodeInterface) setters return $this, but the interface documentation is like the above example, with @return \Drupal\node\NodeInterface. Does that mean, that this is also wrong, and the proper documentation in this case would be @return $this instead?
Comment #4
googletorp commentedAdded new patch based on comments from jhodgdon.
Comment #5
jhodgdonLooks fine, thanks!
Comment #7
xjmThanks @googletorp for the patch. It looks correct to me as well.
This issue only changes documentation, so per https://www.drupal.org/core/beta-changes, this can be completed any time during the Drupal 8 beta phase. Committed and pushed to 8.0.x.