PHP Класс Elcodi\Admin\ProductBundle\Form\Type\CategoryType

Наследование: extends Symfony\Component\Form\AbstractType, use trait Elcodi\Component\EntityTranslator\EventListener\Traits\EntityTranslatableFormTrait, use trait Elcodi\Component\Core\Factory\Traits\FactoryTrait
Показать файл Открыть проект

Открытые методы

Метод Описание
buildForm ( Symfony\Component\Form\FormBuilderInterface $builder, array $options ) Buildform function
configureOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver ) Configures the options for this type.
getBlockPrefix ( ) : string Returns the prefix of the template block name for this type.
getName ( ) : string Return unique name for this form

Защищенные методы

Метод Описание
getAvailableCategories ( integer | null $currentCategoryId ) : callable This method returns a closure used to show only the valid categories to be selected as parent.

Описание методов

buildForm() публичный Метод

Buildform function
public buildForm ( Symfony\Component\Form\FormBuilderInterface $builder, array $options )
$builder Symfony\Component\Form\FormBuilderInterface the formBuilder
$options array the options for this form

configureOptions() публичный Метод

Configures the options for this type.
public configureOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver )
$resolver Symfony\Component\OptionsResolver\OptionsResolver The resolver for the options.

getAvailableCategories() защищенный Метод

This method returns a closure used to show only the valid categories to be selected as parent.
protected getAvailableCategories ( integer | null $currentCategoryId ) : callable
$currentCategoryId integer | null The current category id
Результат callable

getBlockPrefix() публичный Метод

The block prefix defaults to the underscored short class name with the "Type" suffix removed (e.g. "UserProfileType" => "user_profile").
public getBlockPrefix ( ) : string
Результат string The prefix of the template block name

getName() публичный Метод

Return unique name for this form
Устаревший: Deprecated since Symfony 2.8, to be removed from Symfony 3.
public getName ( ) : string
Результат string