<?php
namespace Moto\Application\Content\InputFilter; use Moto\InputFilter\AbstractInputFilter; use Moto; class SaveContentBlockAsObject extends SaveContentBlock { protected $_name = 'content.save:object'; public function init() { parent::init(); $this->remove('content'); $this->add(array( 'name' => 'content_data', 'required' => false, 'allow_empty' => true, 'filters' => array( array('name' => 'Moto\Filter\BodyContentObjects'), ), 'validators' => array( array( 'name' => 'Moto\Validator\BodyContentObjects', ) ), )); } } 