comparison core/modules/comment/comment.module @ 16:c2387f117808

Routine composer update
author Chris Cannam
date Tue, 10 Jul 2018 15:07:59 +0100
parents 4c8ae668cc8c
children 129ea1e6d783
comparison
equal deleted inserted replaced
15:e200cb7efeb3 16:c2387f117808
266 * @param string $langcode 266 * @param string $langcode
267 * (optional) A language code to use for rendering. Defaults to the global 267 * (optional) A language code to use for rendering. Defaults to the global
268 * content language of the current request. 268 * content language of the current request.
269 * 269 *
270 * @return array 270 * @return array
271 * An array as expected by drupal_render(). 271 * An array as expected by \Drupal\Core\Render\RendererInterface::render().
272 * 272 *
273 * @deprecated in Drupal 8.x and will be removed before Drupal 9.0. 273 * @deprecated in Drupal 8.x and will be removed before Drupal 9.0.
274 * Use \Drupal::entityManager()->getViewBuilder('comment')->view(). 274 * Use \Drupal::entityManager()->getViewBuilder('comment')->view().
275 */ 275 */
276 function comment_view(CommentInterface $comment, $view_mode = 'full', $langcode = NULL) { 276 function comment_view(CommentInterface $comment, $view_mode = 'full', $langcode = NULL) {
289 * (optional) A string indicating the language field values are to be shown 289 * (optional) A string indicating the language field values are to be shown
290 * in. If no language is provided the current content language is used. 290 * in. If no language is provided the current content language is used.
291 * Defaults to NULL. 291 * Defaults to NULL.
292 * 292 *
293 * @return array 293 * @return array
294 * An array in the format expected by drupal_render(). 294 * An array in the format expected by
295 * \Drupal\Core\Render\RendererInterface::render().
295 * 296 *
296 * @deprecated in Drupal 8.x and will be removed before Drupal 9.0. 297 * @deprecated in Drupal 8.x and will be removed before Drupal 9.0.
297 * Use \Drupal::entityManager()->getViewBuilder('comment')->viewMultiple(). 298 * Use \Drupal::entityManager()->getViewBuilder('comment')->viewMultiple().
298 * 299 *
299 * @see drupal_render() 300 * @see \Drupal\Core\Render\RendererInterface::render()
300 */ 301 */
301 function comment_view_multiple($comments, $view_mode = 'full', $langcode = NULL) { 302 function comment_view_multiple($comments, $view_mode = 'full', $langcode = NULL) {
302 return entity_view_multiple($comments, $view_mode, $langcode); 303 return entity_view_multiple($comments, $view_mode, $langcode);
303 } 304 }
304 305
556 * The comment entity to preview. 557 * The comment entity to preview.
557 * @param Drupal\Core\Form\FormStateInterface $form_state 558 * @param Drupal\Core\Form\FormStateInterface $form_state
558 * The current state of the form. 559 * The current state of the form.
559 * 560 *
560 * @return array 561 * @return array
561 * An array as expected by drupal_render(). 562 * An array as expected by \Drupal\Core\Render\RendererInterface::render().
562 */ 563 */
563 function comment_preview(CommentInterface $comment, FormStateInterface $form_state) { 564 function comment_preview(CommentInterface $comment, FormStateInterface $form_state) {
564 $preview_build = []; 565 $preview_build = [];
565 $entity = $comment->getCommentedEntity(); 566 $entity = $comment->getCommentedEntity();
566 567