Part of meta-issue #2016679: Expand Entity Type interfaces to provide methods, protect the properties.

See the detailed explanations there and look at the issues that already have patches or were commited.

Add get*, set* and additional methods as it makes sense to replace the public properties (e.g. isSomething() and something())

Comments

G2’s picture

Assigned: Unassigned » G2
internetdevels’s picture

Assigned: G2 » Unassigned
Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new2.42 KB

Here is the patch.

deneo’s picture

Status: Needs review » Reviewed & tested by the community

The patch is good. It solve the issue and fully comply with coding standards. Thank you!

catch’s picture

Status: Reviewed & tested by the community » Needs work
  1. +++ b/core/modules/image/lib/Drupal/image/ImageStyleInterface.php
    @@ -16,6 +16,34 @@
    +   * Returns the replacement id.
    

    ID. Also is it an ID or a name?

  2. +++ b/core/modules/image/lib/Drupal/image/ImageStyleInterface.php
    @@ -16,6 +16,34 @@
    +   *   The name of the image style is placed in.
    

    "The name of the image style is placed in" isn't a complete sentence.

  3. +++ b/core/modules/image/lib/Drupal/image/ImageStyleInterface.php
    @@ -16,6 +16,34 @@
    +   * Set the name of the image style.
    

    Set/Sets.

tarekdj’s picture

Assigned: Unassigned » tarekdj
StatusFileSize
new2.41 KB
tarekdj’s picture

Status: Needs work » Needs review
plopesc’s picture

Status: Needs review » Reviewed & tested by the community

Thanks tarekdj, it looks good to me :)

Next time, please attach an interdiff file. It makes review easier.

RTBC if still green.

tarekdj’s picture

Ok plopesc! got it ;). thanks!

xjm’s picture

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.x, thanks!

Status: Fixed » Closed (fixed)

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