src/DataDefinition/Builder/AbstractEventDrivenDataDefinitionBuilder.php
public static function process(BuildDataDefinitionEvent $event, $eventName, $dispatcher)
    {
        $builder             = new static();
        $builder->eventName  = $eventName;
        $builder->dispatcher = $dispatcher;

        /** @var DataDefinitionBuilderInterface $builder */
        $builder->build($event->getContainer(), $event);
    }
public static function process(BuildDataDefinitionEvent $event, $eventName, $dispatcher)
    {
        $builder             = new static();
        $builder->eventName  = $eventName;
        $builder->dispatcher = $dispatcher;

        /** @var DataDefinitionBuilderInterface $builder */
        $builder->build($event->getContainer(), $event);
    }
public static function process ( BuildDataDefinitionEvent $ event , $ eventName , $ dispatcher ) { $ builder = new static ( ) ; $ builder -> eventName = $ eventName ; $ builder -> dispatcher = $ dispatcher ; /** @var DataDefinitionBuilderInterface $builder */ $ builder -> build ( $ event -> getContainer ( ) , $ event ) ; }
Creates an instance of itself and processes the event.

The attached data definition {@link ContaoCommunityAlliance\DcGeneral\DataDefinition\ContainerInterface}
will be populated with the information from the builder's data source.

@param BuildDataDefinitionEvent $event      The event to process.
@param string                   $eventName  The name of the event to process.
@param EventDispatcherInterface $dispatcher The event dispatcher calling us.

@return void
Creates an instance of itself and processes the event .