$elements_a, * 'item_b' => $elements_b, * ]; * @endcode * * @return array * An associative array keyed by the same keys as $multiple_elements, * containing the original element and all its children pre-rendered. Items * whose cached copy was not available are not returned. * * @see \Drupal\Core\Render\RenderCacheInterface::get() */ public function getMultiple(array $multiple_elements): array; /** * Caches the rendered output of a renderable array. * * May be called by an implementation of \Drupal\Core\Render\RendererInterface * while rendering, if the #cache property is set. * * @param array $elements * A renderable array. * @param array $pre_bubbling_elements * A renderable array corresponding to the state (in particular, the * cacheability metadata) of $elements prior to the beginning of its * rendering process, and therefore before any bubbling of child * information has taken place. Only the #cache property is used by this * function, so the caller may omit all other properties and children from * this array. * * @return bool|null * Returns FALSE if no cache item could be created, NULL otherwise. * * @see ::get() */ public function set(array &$elements, array $pre_bubbling_elements); }