/**
* Builds up all element information.
*
* @param string $theme_name
* The theme name.
*
* @return array
*/
protected function buildInfo($theme_name) { // Get cached definitions.
$cid =
$this->
getCid($theme_name);
if ($cache =
$this->cacheBackend->
get($cid)) { return $cache->data;
} // Otherwise, rebuild and cache.
$info =
[];
$previous_error_handler =
set_error_handler(function D
$severity,
$message,
$file,
$line) use (&
$previous_error_handler) { // Ignore deprecations while building element information.
if ($severity === E_USER_DEPRECATED
) { // Don't execute PHP internal error handler.
return TRUE;
}