core-bundle/src/Fragment/FragmentRegistry.php
public function add(string $identifier, FragmentConfig $config): FragmentRegistryInterface
    {
        // Override existing fragments with the same identifier
        $this->fragments[$identifier] = $config;

        return $this;
    }
public function add(string $identifier, FragmentConfig $config): FragmentRegistryInterface
    {
        // Override existing fragments with the same identifier
        $this->fragments[$identifier] = $config;

        return $this;
    }
{@inheritdoc}