$this->
set($element->
getTechnicalName(),
$element);
} public function getByTechnicalName(string
$name): ?StorefrontPluginConfiguration
{ return $this->
filter(fn (StorefrontPluginConfiguration
$config) =>
$config->
getTechnicalName() ===
$name)->
first();
} public function getThemes(): StorefrontPluginConfigurationCollection
{ return $this->
filter(fn (StorefrontPluginConfiguration
$configuration) =>
$configuration->
getIsTheme());
} public function getNoneThemes(): StorefrontPluginConfigurationCollection
{ return $this->
filter(fn (StorefrontPluginConfiguration
$configuration) => !
$configuration->
getIsTheme());
} protected function getExpectedClass(): ?string
{ return StorefrontPluginConfiguration::
class;
}}