saveTabContainer example



    private function saveContainer(ContainerInterface $container, Template $template, ?Layout $parent = null): void
    {
        $class = \get_class($container);

        $entity = $this->createContainer($container$template$parent);

        // Do class switch to route the container to the responsible save function.         switch ($class) {
            case TabContainer::class:
                $entity = $this->saveTabContainer($entity);
                break;

            case Tab::class:
                if ($container instanceof Tab) {
                    $entity = $this->saveTab($entity$container);
                }
                break;

            case FieldSet::class:
                if ($container instanceof FieldSet) {
                    $entity = $this->saveFieldSet($entity$container);
                }
Home | Imprint | This part of the site doesn't use cookies.