src/CoreBundle/EventListener/DcGeneral/Breadcrumb/BreadcrumbDcaSettingConditionListener.php
protected function getBreadcrumbElements(EnvironmentInterface $environment, BreadcrumbStore $elements)
    {
        if (!$elements->hasId('tl_metamodel_dcasetting')) {
            $elements->setId('tl_metamodel_dcasetting', $this->extractIdFrom($environment, 'pid'));
        }

        parent::getBreadcrumbElements($environment, $elements);

        $builder = UrlBuilder::fromUrl($elements->getUri())
            ->setQueryParameter('do', 'metamodels')
            ->setQueryParameter('table', 'tl_metamodel_dcasetting_condition')
            ->setQueryParameter(
                'pid',
                ModelId::fromValues(
                    'tl_metamodel_dcasetting',
                    $elements->getId('tl_metamodel_dcasetting')
                )->getSerialized()
            )
            ->unsetQueryParameter('act')
            ->unsetQueryParameter('id');

        $elements->push(
            ampersand($builder->getUrl()),
            sprintf(
                $elements->getLabel('tl_metamodel_dcasetting_condition'),
                $this->getConditionAttribute($elements->getId('tl_metamodel_dcasetting'))
            ),
            'bundles/metamodelscore/images/icons/dca_condition.png'
        );
    }
protected function getBreadcrumbElements(EnvironmentInterface $environment, BreadcrumbStore $elements)
    {
        if (!$elements->hasId('tl_metamodel_dcasetting')) {
            $elements->setId('tl_metamodel_dcasetting', $this->extractIdFrom($environment, 'pid'));
        }

        parent::getBreadcrumbElements($environment, $elements);

        $builder = UrlBuilder::fromUrl($elements->getUri())
            ->setQueryParameter('do', 'metamodels')
            ->setQueryParameter('table', 'tl_metamodel_dcasetting_condition')
            ->setQueryParameter(
                'pid',
                ModelId::fromValues(
                    'tl_metamodel_dcasetting',
                    $elements->getId('tl_metamodel_dcasetting')
                )->getSerialized()
            )
            ->unsetQueryParameter('act')
            ->unsetQueryParameter('id');

        $elements->push(
            ampersand($builder->getUrl()),
            sprintf(
                $elements->getLabel('tl_metamodel_dcasetting_condition'),
                $this->getConditionAttribute($elements->getId('tl_metamodel_dcasetting'))
            ),
            'bundles/metamodelscore/images/icons/dca_condition.png'
        );
    }
protected function getBreadcrumbElements ( EnvironmentInterface $ environment , BreadcrumbStore $ elements ) { if ( ! $ elements -> hasId ( 'tl_metamodel_dcasetting' ) ) { $ elements -> setId ( 'tl_metamodel_dcasetting' , $ this -> extractIdFrom ( $ environment , 'pid' ) ) ; } parent :: getBreadcrumbElements ( $ environment , $ elements ) ; $ builder = UrlBuilder :: fromUrl ( $ elements -> getUri ( ) ) -> setQueryParameter ( 'do' , 'metamodels' ) -> setQueryParameter ( 'table' , 'tl_metamodel_dcasetting_condition' ) -> setQueryParameter ( 'pid' , ModelId :: fromValues ( 'tl_metamodel_dcasetting' , $ elements -> getId ( 'tl_metamodel_dcasetting' ) ) -> getSerialized ( ) ) -> unsetQueryParameter ( 'act' ) -> unsetQueryParameter ( 'id' ) ; $ elements -> push ( ampersand ( $ builder -> getUrl ( ) ) , sprintf ( $ elements -> getLabel ( 'tl_metamodel_dcasetting_condition' ) , $ this -> getConditionAttribute ( $ elements -> getId ( 'tl_metamodel_dcasetting' ) ) ) , 'bundles/metamodelscore/images/icons/dca_condition.png' ) ; }
{@inheritDoc}
{