PHP Class Sonata\ProductBundle\Block\VariationsFormBlockService

Author: Hugo Briand ([email protected])
Inheritance: extends Sonata\BlockBundle\Block\BaseBlockService
Show file Open project: sonata-project/ecommerce

Protected Properties

Property Type Description
$formFactory Symfony\Component\Form\FormFactoryInterface
$pool Sonata\Component\Product\Pool

Public Methods

Method Description
__construct ( string $name, Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $templating, Pool $productPool, Symfony\Component\Form\FormFactoryInterface $formFactory )
buildEditForm ( Sonata\AdminBundle\Form\FormMapper $form, Sonata\BlockBundle\Model\BlockInterface $block )
configureSettings ( Symfony\Component\OptionsResolver\OptionsResolver $resolver )
execute ( Sonata\BlockBundle\Block\BlockContextInterface $blockContext, Response $response = null )
getName ( )
validateBlock ( Sonata\CoreBundle\Validator\ErrorElement $errorElement, Sonata\BlockBundle\Model\BlockInterface $block )

Method Details

__construct() public method

public __construct ( string $name, Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $templating, Pool $productPool, Symfony\Component\Form\FormFactoryInterface $formFactory )
$name string
$templating Symfony\Bundle\FrameworkBundle\Templating\EngineInterface
$productPool Sonata\Component\Product\Pool
$formFactory Symfony\Component\Form\FormFactoryInterface

buildEditForm() public method

public buildEditForm ( Sonata\AdminBundle\Form\FormMapper $form, Sonata\BlockBundle\Model\BlockInterface $block )
$form Sonata\AdminBundle\Form\FormMapper
$block Sonata\BlockBundle\Model\BlockInterface

configureSettings() public method

public configureSettings ( Symfony\Component\OptionsResolver\OptionsResolver $resolver )
$resolver Symfony\Component\OptionsResolver\OptionsResolver

execute() public method

public execute ( Sonata\BlockBundle\Block\BlockContextInterface $blockContext, Response $response = null )
$blockContext Sonata\BlockBundle\Block\BlockContextInterface
$response Symfony\Component\HttpFoundation\Response

getName() public method

public getName ( )

validateBlock() public method

public validateBlock ( Sonata\CoreBundle\Validator\ErrorElement $errorElement, Sonata\BlockBundle\Model\BlockInterface $block )
$errorElement Sonata\CoreBundle\Validator\ErrorElement
$block Sonata\BlockBundle\Model\BlockInterface

Property Details

$formFactory protected property

protected FormFactoryInterface,Symfony\Component\Form $formFactory
return Symfony\Component\Form\FormFactoryInterface

$pool protected property

protected Pool,Sonata\Component\Product $pool
return Sonata\Component\Product\Pool