/**
  * Updates the text with the submitted data
  * @param \ride\web\cms\text\Text $text Text to update
  * @param array $data Submitted data
  * @return null
  */
 public function setText(Text $text, array $data)
 {
     $format = $this->getName();
     $title = isset($data[TextWidget::PROPERTY_TITLE]) ? $data[TextWidget::PROPERTY_TITLE] : null;
     $subtitle = isset($data[TextWidget::PROPERTY_SUBTITLE]) ? $data[TextWidget::PROPERTY_SUBTITLE] : null;
     $body = isset($data[TextWidget::PROPERTY_BODY]) ? $data[TextWidget::PROPERTY_BODY] : null;
     $image = isset($data[TextWidget::PROPERTY_IMAGE]) ? $data[TextWidget::PROPERTY_IMAGE] : null;
     $imageAlignment = isset($data[TextWidget::PROPERTY_IMAGE_ALIGNMENT]) ? $data[TextWidget::PROPERTY_IMAGE_ALIGNMENT] : null;
     $text->setFormat($this->getName());
     $text->setTitle($title);
     $text->setSubtitle($subtitle);
     $text->setBody($body);
     $text->setImage($image);
     $text->setImageAlignment($imageAlignment);
 }