src/Model/LayoutBlockFormListener.php
public function postBindData(FormEvent $event)
	{

		/** @var $layoutBlock LayoutBlockInterface */
		$layoutBlock = $event->getForm()->getData();

		$contentObject = $layoutBlock->getContent();

		if (!$contentObject instanceof ContentInterface) {
			throw new \RuntimeException('Content Object must implement the ContentInterface');
		}

		$this->validate($event, $contentObject);
	}
public function postBindData(FormEvent $event)
	{

		/** @var $layoutBlock LayoutBlockInterface */
		$layoutBlock = $event->getForm()->getData();

		$contentObject = $layoutBlock->getContent();

		if (!$contentObject instanceof ContentInterface) {
			throw new \RuntimeException('Content Object must implement the ContentInterface');
		}

		$this->validate($event, $contentObject);
	}
public function postBindData ( FormEvent $ event ) { /** @var $layoutBlock LayoutBlockInterface */ $ layoutBlock = $ event -> getForm ( ) -> getData ( ) ; $ contentObject = $ layoutBlock -> getContent ( ) ; if ( ! $ contentObject instanceof ContentInterface ) { throw new \ RuntimeException ( 'Content Object must implement the ContentInterface' ) ; } $ this -> validate ( $ event , $ contentObject ) ; }
Bind the content type objects variables from the form.
If needed create an new content type object, or change to a new type deleting the old one.
Set the Content objects contentType and objectId fields accordingly.

@param FormEvent $event

@throws \RuntimeException
Bind the content type objects variables from the form . If needed create an new content type object or change to a new type deleting the old one . Set the Content objects contentType and objectId fields accordingly .