private function initFilterTypeExtensions()
    {
        $this->filterTypeExtensions = [];

        foreach ($this->loadFilterTypeExtensions() as $extension) {
            if (!$extension instanceof FilterTypeExtensionInterface) {
                throw new UnexpectedTypeException($extension, FilterTypeExtensionInterface::class);
            }

            $type = $extension->getExtendedType();

            $this->filterTypeExtensions[$type][] = $extension;
        }
    }
private function initFilterTypeExtensions()
    {
        $this->filterTypeExtensions = [];

        foreach ($this->loadFilterTypeExtensions() as $extension) {
            if (!$extension instanceof FilterTypeExtensionInterface) {
                throw new UnexpectedTypeException($extension, FilterTypeExtensionInterface::class);
            }

            $type = $extension->getExtendedType();

            $this->filterTypeExtensions[$type][] = $extension;
        }
    }
private function initFilterTypeExtensions ( ) { $ this -> filterTypeExtensions = [ ] ; foreach ( $ this -> loadFilterTypeExtensions ( ) as $ extension ) { if ( ! $ extension instanceof FilterTypeExtensionInterface ) { throw new UnexpectedTypeException ( $ extension , FilterTypeExtensionInterface :: class ) ; } $ type = $ extension -> getExtendedType ( ) ; $ this -> filterTypeExtensions [ $ type ] [ ] = $ extension ; } }
Initializes the filter type extensions.

@throws UnexpectedTypeException if any registered type extension is not
an instance of FormTypeExtensionInterface
Initializes the filter type extensions .