Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time

Custom Extractor

Integrating a custom extractor is very easy.

        - {name: seo.meta_data.extractor, identifier: my_object_description }

namespace App\MetaData\Extractor;

use SeoBundle\MetaData\Extractor\ExtractorInterface;
use SeoBundle\Model\SeoMetaDataInterface;

class DescriptionExtractor implements ExtractorInterface
    public function supports(mixed $element): bool
        return $element instanceof MyObject;

    public function updateMetaData($element, ?string $locale, SeoMetaDataInterface $seoMetadata): void