Search

Page tree
Skip to end of metadata
Go to start of metadata

TextBlockField is the representative implementation of AbstractField for a multi line text (or DOMDocument).

A new TextBlockField can be created using the following data:

 

use Silversolutions\Bundle\EshopBundle\Content\Fields\TextBlockField;

// Usage: 
$textBlockField = new TextBlockField(
	array(
		'text' => 'This is the <b>description</b> of the product'
	)
);

TextBlockField object can be reliable serialized, such it implements the magic __sleep() and __wakeup() methods.

  • No labels