comparison core/tests/Drupal/Tests/EntityViewTrait.php @ 16:c2387f117808

Routine composer update
author Chris Cannam
date Tue, 10 Jul 2018 15:07:59 +0100
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
15:e200cb7efeb3 16:c2387f117808
30 * the current content language. 30 * the current content language.
31 * @param bool $reset 31 * @param bool $reset
32 * (optional) Whether to clear the cache for this entity. 32 * (optional) Whether to clear the cache for this entity.
33 * @return array 33 * @return array
34 * 34 *
35 * @see drupal_render() 35 * @see \Drupal\Core\Render\RendererInterface::render()
36 */ 36 */
37 protected function buildEntityView(EntityInterface $entity, $view_mode = 'full', $langcode = NULL, $reset = FALSE) { 37 protected function buildEntityView(EntityInterface $entity, $view_mode = 'full', $langcode = NULL, $reset = FALSE) {
38 $ensure_fully_built = function (&$elements) use (&$ensure_fully_built) { 38 $ensure_fully_built = function (&$elements) use (&$ensure_fully_built) {
39 // If the default values for this element have not been loaded yet, populate 39 // If the default values for this element have not been loaded yet, populate
40 // them. 40 // them.