Change record status: 
Project: 
Introduced in branch: 
8.0.x
Introduced in version: 
8.0.0
Description: 

Classes can now implement \Drupal\Core\Render\RenderableInterface to indicate that instances can return renderable representations (render arrays) of themselves. This universal interface should replace any other methods that return render arrays that represent the object on which the method was called.

Example:


class Foo implements RenderableInterface {

  /**
    * {@inheritdoc}
    */
  public function toRenderable() {
    return [
      '#type' => 'item',
      '#title' => $this->getFakeLabel(),
      '#markup' => $this->getFakeContent(),
    ];
  }

}

Impacts: 
Module developers
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Other updates done
Details: 
Progress: