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