// If we get here, then this is our parent theme.
return $current_base_theme;
} /**
* {@inheritdoc}
*/
protected function createExtensionInfo(Extension
$extension) { $info = parent::
createExtensionInfo($extension);
if (!
isset($info['base theme'
])) { throw new InfoParserException(sprintf('Missing required key ("base theme") in %s, see https://www.drupal.org/node/3066038',
$extension->
getPathname()));
} // Remove the base theme when 'base theme: false' is set in a theme
// .info.yml file.
if ($info['base theme'
] === FALSE
) { unset($info['base theme'
]);
} if (!
empty($info['base theme'
])) { // Add the base theme as a proper dependency.
$info['dependencies'
][] =
$info['base theme'
];
}