return null;
} return $this->themeRepository->
searchIds( (new Criteria())->
addFilter(new EqualsFilter('technicalName',
$technicalName)),
$context )->
firstId();
} private function validateExtensionCanBeRemoved(string
$technicalName, string
$id, Context
$context): void
{ $themeId =
$this->
getThemeIdByTechnicalName($technicalName,
$context);
if ($themeId === null
) { // extension is not a theme
return;
} $criteria =
new Criteria();
$criteria->
addAggregation( new FilterAggregation( 'assigned_theme_filter',
new TermsAggregation('assigned_theme', 'themes.id'
),
[