47 lines
1.1 KiB
PHP
47 lines
1.1 KiB
PHP
<?php
|
||
|
||
namespace Trinity\Bundle\ContentManagerBundle\Form\Type;
|
||
|
||
use Symfony\Component\Form\FormBuilderInterface;
|
||
|
||
class PageMetasType extends PageType
|
||
{
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||
{
|
||
$builder->add(
|
||
'seoTitle',
|
||
'text',
|
||
array(
|
||
'required' => false,
|
||
'attr' => array(
|
||
'data-countable' => 1,
|
||
'data-help' => 'Recommended maximum length: 70 characters.'
|
||
),
|
||
)
|
||
);
|
||
|
||
$builder->add(
|
||
'metaDescription',
|
||
'textarea',
|
||
array(
|
||
'required' => false,
|
||
'attr' => array(
|
||
'data-countable' => 1,
|
||
'data-help' => 'Recommended maximum length: 160 characters.'
|
||
),
|
||
)
|
||
);
|
||
|
||
$builder->add(
|
||
'metaKeywords',
|
||
'textarea',
|
||
array(
|
||
'required' => false,
|
||
)
|
||
);
|
||
}
|
||
}
|