summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2018-05-03 16:58:24 (GMT)
committerAlex Pott2018-05-03 16:58:24 (GMT)
commit3bfc5a384b196a48324171fc7a72bd2ef60394ae (patch)
treecbe4131735a626e7bffe22789f534659e3cc8180
parent951b4334fbfd1b716de96c3bc126885ffb44a826 (diff)
Issue #2938970 by MerryHamster, surbz, msankhala, alexpott, Jo Fitzgerald, Yasiru Nilan, Manuel Garcia, ZeiP, boaloysius, xjm, wturrell, tameeshb, darrenwh, ritzz: Replace drupal_render() in @param, @return, @see, @link, etc
-rw-r--r--core/includes/common.inc2
-rw-r--r--core/lib/Drupal/Core/Entity/Controller/EntityListController.php3
-rw-r--r--core/lib/Drupal/Core/Entity/Controller/EntityViewController.php3
-rw-r--r--core/lib/Drupal/Core/Entity/EntityListBuilderInterface.php3
-rw-r--r--core/lib/Drupal/Core/Entity/EntityViewBuilder.php4
-rw-r--r--core/lib/Drupal/Core/Entity/entity.api.php10
-rw-r--r--core/modules/aggregator/src/Controller/AggregatorController.php6
-rw-r--r--core/modules/block/src/Controller/BlockListController.php3
-rw-r--r--core/modules/block_content/src/Controller/BlockContentController.php3
-rw-r--r--core/modules/book/src/BookManagerInterface.php3
-rw-r--r--core/modules/comment/comment.module9
-rw-r--r--core/modules/config_translation/src/Controller/ConfigTranslationListController.php3
-rw-r--r--core/modules/contact/src/Controller/ContactController.php6
-rw-r--r--core/modules/content_moderation/src/Controller/ModeratedContentController.php3
-rw-r--r--core/modules/dblog/src/Controller/DbLogController.php8
-rw-r--r--core/modules/field_ui/src/Controller/FieldConfigListController.php3
-rw-r--r--core/modules/field_ui/src/Element/FieldUiTable.php2
-rw-r--r--core/modules/field_ui/src/Form/EntityDisplayFormBase.php2
-rw-r--r--core/modules/help/src/Controller/HelpController.php3
-rw-r--r--core/modules/node/node.module5
-rw-r--r--core/modules/node/src/Controller/NodeController.php4
-rw-r--r--core/modules/path/src/Controller/PathController.php3
-rw-r--r--core/modules/system/src/SystemManager.php3
-rw-r--r--core/modules/system/tests/modules/test_page_test/src/Controller/Test.php15
-rw-r--r--core/modules/taxonomy/taxonomy.module6
-rw-r--r--core/modules/toolbar/toolbar.module2
-rw-r--r--core/modules/user/user.module5
-rw-r--r--core/modules/views/views.module7
-rw-r--r--core/tests/Drupal/Tests/EntityViewTrait.php2
29 files changed, 81 insertions, 50 deletions
diff --git a/core/includes/common.inc b/core/includes/common.inc
index d7a6066..ffdd3fa 100644
--- a/core/includes/common.inc
+++ b/core/includes/common.inc
@@ -899,7 +899,7 @@ function drupal_render(&$elements, $is_recursive_call = FALSE) {
* rendering when possible or loop through the elements and render them as
* they are available.
*
- * @see drupal_render()
+ * @see \Drupal\Core\Render\RendererInterface::render()
* @see https://www.drupal.org/node/2912757
*/
function drupal_render_children(&$element, $children_keys = NULL) {
diff --git a/core/lib/Drupal/Core/Entity/Controller/EntityListController.php b/core/lib/Drupal/Core/Entity/Controller/EntityListController.php
index d8a1ea1..ee35467 100644
--- a/core/lib/Drupal/Core/Entity/Controller/EntityListController.php
+++ b/core/lib/Drupal/Core/Entity/Controller/EntityListController.php
@@ -16,7 +16,8 @@ class EntityListController extends ControllerBase {
* The entity type to render.
*
* @return array
- * A render array as expected by drupal_render().
+ * A render array as expected by
+ * \Drupal\Core\Render\RendererInterface::render().
*/
public function listing($entity_type) {
return $this->entityManager()->getListBuilder($entity_type)->render();
diff --git a/core/lib/Drupal/Core/Entity/Controller/EntityViewController.php b/core/lib/Drupal/Core/Entity/Controller/EntityViewController.php
index 983eec8..7922ef4 100644
--- a/core/lib/Drupal/Core/Entity/Controller/EntityViewController.php
+++ b/core/lib/Drupal/Core/Entity/Controller/EntityViewController.php
@@ -88,7 +88,8 @@ class EntityViewController implements ContainerInjectionInterface {
* Defaults to 'full'.
*
* @return array
- * A render array as expected by drupal_render().
+ * A render array as expected by
+ * \Drupal\Core\Render\RendererInterface::render().
*/
public function view(EntityInterface $_entity, $view_mode = 'full') {
$page = $this->entityManager
diff --git a/core/lib/Drupal/Core/Entity/EntityListBuilderInterface.php b/core/lib/Drupal/Core/Entity/EntityListBuilderInterface.php
index bab9d97..eb16874 100644
--- a/core/lib/Drupal/Core/Entity/EntityListBuilderInterface.php
+++ b/core/lib/Drupal/Core/Entity/EntityListBuilderInterface.php
@@ -47,7 +47,8 @@ interface EntityListBuilderInterface {
* Builds a listing of entities for the given entity type.
*
* @return array
- * A render array as expected by drupal_render().
+ * A render array as expected by
+ * \Drupal\Core\Render\RendererInterface::render().
*/
public function render();
diff --git a/core/lib/Drupal/Core/Entity/EntityViewBuilder.php b/core/lib/Drupal/Core/Entity/EntityViewBuilder.php
index faeb147..da1a43b 100644
--- a/core/lib/Drupal/Core/Entity/EntityViewBuilder.php
+++ b/core/lib/Drupal/Core/Entity/EntityViewBuilder.php
@@ -213,7 +213,7 @@ class EntityViewBuilder extends EntityHandlerBase implements EntityHandlerInterf
* @return array
* The updated renderable array.
*
- * @see drupal_render()
+ * @see \Drupal\Core\Render\RendererInterface::render()
*/
public function build(array $build) {
$build_list = [$build];
@@ -237,7 +237,7 @@ class EntityViewBuilder extends EntityHandlerBase implements EntityHandlerInterf
* @return array
* The updated renderable array.
*
- * @see drupal_render()
+ * @see \Drupal\Core\Render\RendererInterface::render()
*/
public function buildMultiple(array $build_list) {
// Build the view modes and display objects.
diff --git a/core/lib/Drupal/Core/Entity/entity.api.php b/core/lib/Drupal/Core/Entity/entity.api.php
index 085dc3c..cfb123e 100644
--- a/core/lib/Drupal/Core/Entity/entity.api.php
+++ b/core/lib/Drupal/Core/Entity/entity.api.php
@@ -1359,7 +1359,8 @@ function hook_ENTITY_TYPE_revision_delete(Drupal\Core\Entity\EntityInterface $en
* @param &$build
* A renderable array representing the entity content. The module may add
* elements to $build prior to rendering. The structure of $build is a
- * renderable array as expected by drupal_render().
+ * renderable array as expected by
+ * \Drupal\Core\Render\RendererInterface::render().
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity object.
* @param \Drupal\Core\Entity\Display\EntityViewDisplayInterface $display
@@ -1391,7 +1392,8 @@ function hook_entity_view(array &$build, \Drupal\Core\Entity\EntityInterface $en
* @param &$build
* A renderable array representing the entity content. The module may add
* elements to $build prior to rendering. The structure of $build is a
- * renderable array as expected by drupal_render().
+ * renderable array as expected by
+ * \Drupal\Core\Render\RendererInterface::render().
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity object.
* @param \Drupal\Core\Entity\Display\EntityViewDisplayInterface $display
@@ -1569,7 +1571,7 @@ function hook_entity_view_mode_alter(&$view_mode, Drupal\Core\Entity\EntityInter
* @param string $view_mode
* The view_mode that is to be used to display the entity.
*
- * @see drupal_render()
+ * @see \Drupal\Core\Render\RendererInterface::render()
* @see \Drupal\Core\Entity\EntityViewBuilder
* @see hook_entity_build_defaults_alter()
*
@@ -1593,7 +1595,7 @@ function hook_ENTITY_TYPE_build_defaults_alter(array &$build, \Drupal\Core\Entit
* @param string $view_mode
* The view_mode that is to be used to display the entity.
*
- * @see drupal_render()
+ * @see \Drupal\Core\Render\RendererInterface::render()
* @see \Drupal\Core\Entity\EntityViewBuilder
* @see hook_ENTITY_TYPE_build_defaults_alter()
*
diff --git a/core/modules/aggregator/src/Controller/AggregatorController.php b/core/modules/aggregator/src/Controller/AggregatorController.php
index 7fd0743..47827b9 100644
--- a/core/modules/aggregator/src/Controller/AggregatorController.php
+++ b/core/modules/aggregator/src/Controller/AggregatorController.php
@@ -44,7 +44,8 @@ class AggregatorController extends ControllerBase {
* Presents the aggregator feed creation form.
*
* @return array
- * A form array as expected by drupal_render().
+ * A form array as expected by
+ * \Drupal\Core\Render\RendererInterface::render().
*/
public function feedAdd() {
$feed = $this->entityManager()->getStorage('aggregator_feed')->create();
@@ -101,7 +102,8 @@ class AggregatorController extends ControllerBase {
* Displays the aggregator administration page.
*
* @return array
- * A render array as expected by drupal_render().
+ * A render array as expected by
+ * \Drupal\Core\Render\RendererInterface::render().
*/
public function adminOverview() {
$entity_manager = $this->entityManager();
diff --git a/core/modules/block/src/Controller/BlockListController.php b/core/modules/block/src/Controller/BlockListController.php
index 74ea9c1..d88d1f4 100644
--- a/core/modules/block/src/Controller/BlockListController.php
+++ b/core/modules/block/src/Controller/BlockListController.php
@@ -48,7 +48,8 @@ class BlockListController extends EntityListController {
* The current request.
*
* @return array
- * A render array as expected by drupal_render().
+ * A render array as expected by
+ * \Drupal\Core\Render\RendererInterface::render().
*/
public function listing($theme = NULL, Request $request = NULL) {
$theme = $theme ?: $this->config('system.theme')->get('default');
diff --git a/core/modules/block_content/src/Controller/BlockContentController.php b/core/modules/block_content/src/Controller/BlockContentController.php
index 7c1f8aa..ff10ff0 100644
--- a/core/modules/block_content/src/Controller/BlockContentController.php
+++ b/core/modules/block_content/src/Controller/BlockContentController.php
@@ -98,7 +98,8 @@ class BlockContentController extends ControllerBase {
* The current request object.
*
* @return array
- * A form array as expected by drupal_render().
+ * A form array as expected by
+ * \Drupal\Core\Render\RendererInterface::render().
*/
public function addForm(BlockContentTypeInterface $block_content_type, Request $request) {
$block = $this->blockContentStorage->create([
diff --git a/core/modules/book/src/BookManagerInterface.php b/core/modules/book/src/BookManagerInterface.php
index 324a5da..155e2a8 100644
--- a/core/modules/book/src/BookManagerInterface.php
+++ b/core/modules/book/src/BookManagerInterface.php
@@ -246,7 +246,8 @@ interface BookManagerInterface {
* A data structure representing the tree as returned from buildBookOutlineData.
*
* @return array
- * A structured array to be rendered by drupal_render().
+ * A structured array to be rendered by
+ * \Drupal\Core\Render\RendererInterface::render().
*
* @see \Drupal\Core\Menu\MenuLinkTree::build
*/
diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module
index bb203bf..4122e39 100644
--- a/core/modules/comment/comment.module
+++ b/core/modules/comment/comment.module
@@ -268,7 +268,7 @@ function comment_node_view_alter(array &$build, EntityInterface $node, EntityVie
* content language of the current request.
*
* @return array
- * An array as expected by drupal_render().
+ * An array as expected by \Drupal\Core\Render\RendererInterface::render().
*
* @deprecated in Drupal 8.x and will be removed before Drupal 9.0.
* Use \Drupal::entityManager()->getViewBuilder('comment')->view().
@@ -291,12 +291,13 @@ function comment_view(CommentInterface $comment, $view_mode = 'full', $langcode
* Defaults to NULL.
*
* @return array
- * An array in the format expected by drupal_render().
+ * An array in the format expected by
+ * \Drupal\Core\Render\RendererInterface::render().
*
* @deprecated in Drupal 8.x and will be removed before Drupal 9.0.
* Use \Drupal::entityManager()->getViewBuilder('comment')->viewMultiple().
*
- * @see drupal_render()
+ * @see \Drupal\Core\Render\RendererInterface::render()
*/
function comment_view_multiple($comments, $view_mode = 'full', $langcode = NULL) {
return entity_view_multiple($comments, $view_mode, $langcode);
@@ -558,7 +559,7 @@ function comment_user_predelete($account) {
* The current state of the form.
*
* @return array
- * An array as expected by drupal_render().
+ * An array as expected by \Drupal\Core\Render\RendererInterface::render().
*/
function comment_preview(CommentInterface $comment, FormStateInterface $form_state) {
$preview_build = [];
diff --git a/core/modules/config_translation/src/Controller/ConfigTranslationListController.php b/core/modules/config_translation/src/Controller/ConfigTranslationListController.php
index 7a39289..3870131 100644
--- a/core/modules/config_translation/src/Controller/ConfigTranslationListController.php
+++ b/core/modules/config_translation/src/Controller/ConfigTranslationListController.php
@@ -45,7 +45,8 @@ class ConfigTranslationListController extends ControllerBase {
* The name of the mapper.
*
* @return array
- * A render array as expected by drupal_render().
+ * A render array as expected by
+ * \Drupal\Core\Render\RendererInterface::render().
*
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
* Throws an exception if a mapper plugin could not be instantiated from the
diff --git a/core/modules/contact/src/Controller/ContactController.php b/core/modules/contact/src/Controller/ContactController.php
index 1844280..6f9568f 100644
--- a/core/modules/contact/src/Controller/ContactController.php
+++ b/core/modules/contact/src/Controller/ContactController.php
@@ -47,7 +47,8 @@ class ContactController extends ControllerBase {
* The contact form to use.
*
* @return array
- * The form as render array as expected by drupal_render().
+ * The form as render array as expected by
+ * \Drupal\Core\Render\RendererInterface::render().
*
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
* Exception is thrown when user tries to access non existing default
@@ -95,7 +96,8 @@ class ContactController extends ControllerBase {
* The account for which a personal contact form should be generated.
*
* @return array
- * The personal contact form as render array as expected by drupal_render().
+ * The personal contact form as render array as expected by
+ * \Drupal\Core\Render\RendererInterface::render().
*
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
* Exception is thrown when user tries to access a contact form for a
diff --git a/core/modules/content_moderation/src/Controller/ModeratedContentController.php b/core/modules/content_moderation/src/Controller/ModeratedContentController.php
index cdd00dd..02014f9 100644
--- a/core/modules/content_moderation/src/Controller/ModeratedContentController.php
+++ b/core/modules/content_moderation/src/Controller/ModeratedContentController.php
@@ -14,7 +14,8 @@ class ModeratedContentController extends ControllerBase {
* Provides the listing page for moderated nodes.
*
* @return array
- * A render array as expected by drupal_render().
+ * A render array as expected by
+ * \Drupal\Core\Render\RendererInterface::render().
*/
public function nodeListing() {
$entity_type = $this->entityTypeManager()->getDefinition('node');
diff --git a/core/modules/dblog/src/Controller/DbLogController.php b/core/modules/dblog/src/Controller/DbLogController.php
index 4cfbece..21e3dac 100644
--- a/core/modules/dblog/src/Controller/DbLogController.php
+++ b/core/modules/dblog/src/Controller/DbLogController.php
@@ -113,7 +113,8 @@ class DbLogController extends ControllerBase {
* Full-length messages can be viewed on the message details page.
*
* @return array
- * A render array as expected by drupal_render().
+ * A render array as expected by
+ * \Drupal\Core\Render\RendererInterface::render().
*
* @see Drupal\dblog\Form\DblogClearLogConfirmForm
* @see Drupal\dblog\Controller\DbLogController::eventDetails()
@@ -237,7 +238,7 @@ class DbLogController extends ControllerBase {
*
* @return array
* If the ID is located in the Database Logging table, a build array in the
- * format expected by drupal_render();
+ * format expected by \Drupal\Core\Render\RendererInterface::render().
*/
public function eventDetails($event_id) {
$build = [];
@@ -378,7 +379,8 @@ class DbLogController extends ControllerBase {
* Type of database log events to display (e.g., 'search').
*
* @return array
- * A build array in the format expected by drupal_render().
+ * A build array in the format expected by
+ * \Drupal\Core\Render\RendererInterface::render().
*/
public function topLogMessages($type) {
$header = [
diff --git a/core/modules/field_ui/src/Controller/FieldConfigListController.php b/core/modules/field_ui/src/Controller/FieldConfigListController.php
index 0a6911a..5866405 100644
--- a/core/modules/field_ui/src/Controller/FieldConfigListController.php
+++ b/core/modules/field_ui/src/Controller/FieldConfigListController.php
@@ -21,7 +21,8 @@ class FieldConfigListController extends EntityListController {
* The current route match.
*
* @return array
- * A render array as expected by drupal_render().
+ * A render array as expected by
+ * \Drupal\Core\Render\RendererInterface::render().
*/
public function listing($entity_type_id = NULL, $bundle = NULL, RouteMatchInterface $route_match = NULL) {
return $this->entityManager()->getListBuilder('field_config')->render($entity_type_id, $bundle);
diff --git a/core/modules/field_ui/src/Element/FieldUiTable.php b/core/modules/field_ui/src/Element/FieldUiTable.php
index 84cafb0..894d5b0 100644
--- a/core/modules/field_ui/src/Element/FieldUiTable.php
+++ b/core/modules/field_ui/src/Element/FieldUiTable.php
@@ -38,7 +38,7 @@ class FieldUiTable extends Table {
* @return array
* The $element with prepared variables ready for field-ui-table.html.twig.
*
- * @see drupal_render()
+ * @see \Drupal\Core\Render\RendererInterface::render()
* @see \Drupal\Core\Render\Element\Table::preRenderTable()
*/
public static function tablePreRender($elements) {
diff --git a/core/modules/field_ui/src/Form/EntityDisplayFormBase.php b/core/modules/field_ui/src/Form/EntityDisplayFormBase.php
index 0df8e76..58f8e63 100644
--- a/core/modules/field_ui/src/Form/EntityDisplayFormBase.php
+++ b/core/modules/field_ui/src/Form/EntityDisplayFormBase.php
@@ -703,7 +703,7 @@ abstract class EntityDisplayFormBase extends EntityForm {
*
* @return array
*
- * @see drupal_render()
+ * @see \Drupal\Core\Render\RendererInterface::render()
* @see \Drupal\Core\Render\Element\Table::preRenderTable()
*
* @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
diff --git a/core/modules/help/src/Controller/HelpController.php b/core/modules/help/src/Controller/HelpController.php
index 758d05d..0ccf354 100644
--- a/core/modules/help/src/Controller/HelpController.php
+++ b/core/modules/help/src/Controller/HelpController.php
@@ -107,7 +107,8 @@ class HelpController extends ControllerBase {
* A module name to display a help page for.
*
* @return array
- * A render array as expected by drupal_render().
+ * A render array as expected by
+ * \Drupal\Core\Render\RendererInterface::render().
*
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
*/
diff --git a/core/modules/node/node.module b/core/modules/node/node.module
index 9930fa8..5822cb0 100644
--- a/core/modules/node/node.module
+++ b/core/modules/node/node.module
@@ -806,7 +806,7 @@ function node_get_recent($number = 10) {
* the global content language of the current request.
*
* @return array
- * An array as expected by drupal_render().
+ * An array as expected by \Drupal\Core\Render\RendererInterface::render().
*/
function node_view(NodeInterface $node, $view_mode = 'full', $langcode = NULL) {
return entity_view($node, $view_mode, $langcode);
@@ -824,7 +824,8 @@ function node_view(NodeInterface $node, $view_mode = 'full', $langcode = NULL) {
* content language of the current request.
*
* @return array
- * An array in the format expected by drupal_render().
+ * An array in the format expected by
+ * \Drupal\Core\Render\RendererInterface::render().
*/
function node_view_multiple($nodes, $view_mode = 'teaser', $langcode = NULL) {
return entity_view_multiple($nodes, $view_mode, $langcode);
diff --git a/core/modules/node/src/Controller/NodeController.php b/core/modules/node/src/Controller/NodeController.php
index e873f91..704bf51 100644
--- a/core/modules/node/src/Controller/NodeController.php
+++ b/core/modules/node/src/Controller/NodeController.php
@@ -122,7 +122,7 @@ class NodeController extends ControllerBase implements ContainerInjectionInterfa
* The node revision ID.
*
* @return array
- * An array suitable for drupal_render().
+ * An array suitable for \Drupal\Core\Render\RendererInterface::render().
*/
public function revisionShow($node_revision) {
$node = $this->entityManager()->getStorage('node')->loadRevision($node_revision);
@@ -154,7 +154,7 @@ class NodeController extends ControllerBase implements ContainerInjectionInterfa
* A node object.
*
* @return array
- * An array as expected by drupal_render().
+ * An array as expected by \Drupal\Core\Render\RendererInterface::render().
*/
public function revisionOverview(NodeInterface $node) {
$account = $this->currentUser();
diff --git a/core/modules/path/src/Controller/PathController.php b/core/modules/path/src/Controller/PathController.php
index 51f88dd..26fe851 100644
--- a/core/modules/path/src/Controller/PathController.php
+++ b/core/modules/path/src/Controller/PathController.php
@@ -59,7 +59,8 @@ class PathController extends ControllerBase {
* The request object.
*
* @return array
- * A render array as expected by drupal_render().
+ * A render array as expected by
+ * \Drupal\Core\Render\RendererInterface::render().
*/
public function adminOverview(Request $request) {
$keys = $request->query->get('search');
diff --git a/core/modules/system/src/SystemManager.php b/core/modules/system/src/SystemManager.php
index 3fc4182..d1dd3cf 100644
--- a/core/modules/system/src/SystemManager.php
+++ b/core/modules/system/src/SystemManager.php
@@ -152,7 +152,8 @@ class SystemManager {
* hidden, so we supply the contents of the block.
*
* @return array
- * A render array suitable for drupal_render.
+ * A render array suitable for
+ * \Drupal\Core\Render\RendererInterface::render().
*/
public function getBlockContents() {
// We hard-code the menu name here since otherwise a link in the tools menu
diff --git a/core/modules/system/tests/modules/test_page_test/src/Controller/Test.php b/core/modules/system/tests/modules/test_page_test/src/Controller/Test.php
index e754eaf..8867b8b 100644
--- a/core/modules/system/tests/modules/test_page_test/src/Controller/Test.php
+++ b/core/modules/system/tests/modules/test_page_test/src/Controller/Test.php
@@ -15,7 +15,8 @@ class Test {
* Renders a page with a title.
*
* @return array
- * A render array as expected by drupal_render()
+ * A render array as expected by
+ * \Drupal\Core\Render\RendererInterface::render().
*/
public function renderTitle() {
$build = [];
@@ -29,7 +30,8 @@ class Test {
* Renders a page.
*
* @return array
- * A render array as expected by drupal_render().
+ * A render array as expected by
+ * \Drupal\Core\Render\RendererInterface::render().
*/
public function staticTitle() {
$build = [];
@@ -66,7 +68,8 @@ class Test {
* Returns a generic page render array for title tests.
*
* @return array
- * A render array as expected by drupal_render()
+ * A render array as expected by
+ * \Drupal\Core\Render\RendererInterface::render().
*/
public function renderPage() {
return [
@@ -95,7 +98,8 @@ class Test {
* Renders a page with encoded markup.
*
* @return array
- * A render array as expected by drupal_render()
+ * A render array as expected by
+ * \Drupal\Core\Render\RendererInterface::render().
*/
public function renderEncodedMarkup() {
return ['#plain_text' => 'Bad html <script>alert(123);</script>'];
@@ -105,7 +109,8 @@ class Test {
* Renders a page with pipe character in link test.
*
* @return array
- * A render array as expected by drupal_render()
+ * A render array as expected by
+ * \Drupal\Core\Render\RendererInterface::render().
*/
public function renderPipeInLink() {
return ['#markup' => '<a href="http://example.com">foo|bar|baz</a>'];
diff --git a/core/modules/taxonomy/taxonomy.module b/core/modules/taxonomy/taxonomy.module
index be8532a..179487d 100644
--- a/core/modules/taxonomy/taxonomy.module
+++ b/core/modules/taxonomy/taxonomy.module
@@ -213,7 +213,8 @@ function taxonomy_check_vocabulary_hierarchy(VocabularyInterface $vocabulary, $c
* content language of the current request.
*
* @return array
- * A $page element suitable for use by drupal_render().
+ * A $page element suitable for use by
+ * \Drupal\Core\Render\RendererInterface::render().
*/
function taxonomy_term_view(Term $term, $view_mode = 'full', $langcode = NULL) {
return entity_view($term, $view_mode, $langcode);
@@ -231,7 +232,8 @@ function taxonomy_term_view(Term $term, $view_mode = 'full', $langcode = NULL) {
* content language of the current request.
*
* @return array
- * An array in the format expected by drupal_render().
+ * An array in the format expected by
+ * \Drupal\Core\Render\RendererInterface::render().
*/
function taxonomy_term_view_multiple(array $terms, $view_mode = 'full', $langcode = NULL) {
return entity_view_multiple($terms, $view_mode, $langcode);
diff --git a/core/modules/toolbar/toolbar.module b/core/modules/toolbar/toolbar.module
index c7feaee..044d749 100644
--- a/core/modules/toolbar/toolbar.module
+++ b/core/modules/toolbar/toolbar.module
@@ -217,7 +217,7 @@ function toolbar_toolbar() {
* @return array
* The updated renderable array.
*
- * @see drupal_render()
+ * @see \Drupal\Core\Render\RendererInterface::render()
*/
function toolbar_prerender_toolbar_administration_tray(array $element) {
$menu_tree = \Drupal::service('toolbar.menu_tree');
diff --git a/core/modules/user/user.module b/core/modules/user/user.module
index bc10222..0683e88 100644
--- a/core/modules/user/user.module
+++ b/core/modules/user/user.module
@@ -900,7 +900,7 @@ function user_delete_multiple(array $uids) {
* content language of the current request.
*
* @return array
- * An array as expected by drupal_render().
+ * An array as expected by \Drupal\Core\Render\RendererInterface::render().
*/
function user_view($account, $view_mode = 'full', $langcode = NULL) {
return entity_view($account, $view_mode, $langcode);
@@ -918,7 +918,8 @@ function user_view($account, $view_mode = 'full', $langcode = NULL) {
* content language of the current request.
*
* @return array
- * An array in the format expected by drupal_render().
+ * An array in the format expected by
+ * \Drupal\Core\Render\RendererInterface::render().
*/
function user_view_multiple($accounts, $view_mode = 'full', $langcode = NULL) {
return entity_view_multiple($accounts, $view_mode, $langcode);
diff --git a/core/modules/views/views.module b/core/modules/views/views.module
index f484f18..4b653fd 100644
--- a/core/modules/views/views.module
+++ b/core/modules/views/views.module
@@ -326,9 +326,10 @@ function views_theme_suggestions_container_alter(array &$suggestions, array $var
*
* @param $render_element
* The renderable array to which contextual links will be added. This array
- * should be suitable for passing in to drupal_render() and will normally
- * contain a representation of the view display whose contextual links are
- * being requested.
+ * should be suitable for passing in to
+ * \Drupal\Core\Render\RendererInterface::render() and will normally contain a
+ * representation of the view display whose contextual links are being
+ * requested.
* @param $location
* The location in which the calling function intends to render the view and
* its contextual links. The core system supports three options for this
diff --git a/core/tests/Drupal/Tests/EntityViewTrait.php b/core/tests/Drupal/Tests/EntityViewTrait.php
index d8c9d92..bd75541 100644
--- a/core/tests/Drupal/Tests/EntityViewTrait.php
+++ b/core/tests/Drupal/Tests/EntityViewTrait.php
@@ -32,7 +32,7 @@ trait EntityViewTrait {
* (optional) Whether to clear the cache for this entity.
* @return array
*
- * @see drupal_render()
+ * @see \Drupal\Core\Render\RendererInterface::render()
*/
protected function buildEntityView(EntityInterface $entity, $view_mode = 'full', $langcode = NULL, $reset = FALSE) {
$ensure_fully_built = function (&$elements) use (&$ensure_fully_built) {