Get form flash object.

@return FormFlash
770943
public function getFlash(): FormFlash
    {
        if (null === $this->flash) {
            /** @var Grav $grav */
            $grav = Grav::instance();
            $id = null;

            $user = $grav['user'] ?? null;
            if (isset($user)) {
                $rememberState = $this->getBlueprint()->get('form/remember_state');
                if ($rememberState === 'user') {
                    $id = $user->username;
                }
            }

            // Session Required for flash form
            $session = $grav['session'] ?? null;
            if (isset($session)) {
                // By default store flash by the session id.
                if (null === $id) {
                    $id = $session->getId();
                }


                $this->flash = new FormFlash($id, $this->getUniqueId(), $this->getName());
                $this->flash->setUrl($grav['uri']->url)->setUser($user);
            }
        }

        return $this->flash;
    }
610547
public com.google.api.ads.admanager.axis.v201805.CreativeAsset getFlashAsset() {
        return flashAsset;
    }
1019782
protected function getContentTemplate()
	{
		$attributes = [
			'data'          => $this->attributes['src'],
			'style'         => $this->attributes['style'],
			'type'          => 'application/x-shockwave-flash',
			'typemustmatch' => ''
		];

		$flashVarsParam = '';
		if (isset($this->attributes['flashvars']))
		{
			$flashVarsParam = $this->generateParamElement('flashvars', $this->attributes['flashvars']);
		}

		$template = '<object>'
		          . $this->generateAttributes($attributes)
		          . $this->generateParamElement('allowfullscreen', 'true')
		          . $flashVarsParam
		          . '</object>';

		return $template;
	}
339358
public function getRenderer()
    {
        if ($this->hasForm()) {
            return $this->getForm()->getRenderer();
        } elseif($this->hasRenderer()) {
            return $this->renderer;
        } else {
            return null;
        }
    }
151001
public function renderForm()
    {
        $html = $this->form_open();
        $html .= $this->renderSubForm();
        $html .= $this->form_close();

        return $html;
    }
15719
public function getForm()
    {
        if (null === $this->form) {
            $this->setForm($this->getUserService()->getLoginForm());
        }

        return $this->form;
    }
1017878
public function getflashMessageAction()
    {
        // translator service
        $translator = $this->serviceLocator->get('translator');

        // tool service
        $tool = $this->getServiceLocator()->get('MelisCoretool');
        
        // flash messenger service
        $flashMessenger = $this->getServiceLocator()->get('MelisCoreFlashMessenger');
        
        $flashMessages = Json::decode($flashMessenger->getFlashMessengerMessages());
        
        // flashMessages array, re-stored so we can apply translation to its content
        $fmArray = array();
        $fmCtr = 0;
        
        if($flashMessages)
        {
            foreach($flashMessages as $fmKey => $fmValues) {
                $title   = $translator->translate($fmValues->title);
                $message =  $translator->translate($fmValues->message);
                $fmArray[] = array(
                    'title' => ($title),
                    'message' => ($message),
                    'image' => $fmValues->image,
                    'time' => $fmValues->time,
                    'date' => $fmValues->date,
                    'date_trans' => $fmValues->date_trans,
                );
            }
        }
        
    	return new JsonModel(array(
    		'flashMessage' => $fmArray,
    	));
    }
232831
public function Form()
    {
        $form = UserForm::create($this, 'Form_' . $this->ID);
        /** @skipUpgrade */
        $form->setFormAction(Controller::join_links($this->Link(), 'Form'));
        $this->generateConditionalJavascript();
        return $form;
    }
740559
public function getMoveForm()
    {
        $id = $this->getRequest()->param('ItemID');
        $scaffolder = Injector::inst()->get(MoveFormFactory::class);

        $form = $scaffolder->getForm($this, 'moveForm', ['FolderID' => $id]);
        $form->setRequestHandler(
            LeftAndMainFormRequestHandler::create($form, [ $id ])
        );

        return $form;
    }
918628
public function SearchForm()
    {
        $searchText = $this->owner->getRequest()->getVar('Search');

        $fields = FieldList::create(
            TextField::create('Search', false, $searchText)
        );
        $actions = FieldList::create(
            FormAction::create('results', _t('SilverStripe\\CMS\\Search\\SearchForm.GO', 'Go'))
        );

        $form = SearchForm::create($this->owner, SearchForm::class, $fields, $actions);
        $form->setFormAction('search/SearchForm');

        return $form;
    }
493457
public function getFlashMessages()
    {
        if (is_null($this->_flashMessages)) {
            $this->_flashMessages = FlashMessages::getInstance();
        }
        return $this->_flashMessages;
    }
474089
public function getFormService()
    {
        if (!array_key_exists('form', $this->services)) {
            $this->services['form'] = new Form($this->httpClient, $this->key);
        }

        return $this->services['form'];
    }
484497
protected function getFormTag()
    {
        $form_tag = new SwatHtmlTag('form');

        $form_tag->addAttributes(array(
            'id' => $this->id,
            'method' => $this->method,
            'enctype' => $this->encoding_type,
            'accept-charset' => $this->accept_charset,
            'action' => $this->action,
            'class' => $this->getCSSClassString()
        ));

        // we're going to validate data on the server, so turn off HTML5
        // form validation
        $form_tag->novalidate = 'novalidate';

        return $form_tag;
    }
605821
protected function doFormAction ()
  {
//    if (count ($_POST) == 0 && count ($_FILES) == 0)
//      throw new FileException(FileException::FILE_TOO_BIG, ini_get ('upload_max_filesize'));
    $this->getActionAndParam ($action, $param);
    $class = new ReflectionObject ($this);
    try {
      $method = $class->getMethod ('action_' . $action);
    }
    catch (ReflectionException $e) {
      throw new FlashMessageException('Class <b>' . $class->getName () . "</b> can't handle action <b>$action</b>.",
        FlashType::ERROR);
    }
    return $method->invoke ($this, $param);
  }
512195
public function getFlashObject($name)
    {
        $serialized = $this->__get($name);

        $object = \is_string($serialized) ? unserialize($serialized, ['allowed_classes' => true]) : $serialized;

        $this->__unset($name);

        if ($name === 'files-upload') {
            $grav = Grav::instance();

            // Make sure that Forms 3.0+ has been installed.
            if (null === $object && isset($grav['forms'])) {
                user_error(
                    __CLASS__ . '::' . __FUNCTION__ . '(\'files-upload\') is deprecated since Grav 1.6, use $form->getFlash()->getLegacyFiles() instead',
                    E_USER_DEPRECATED
                );

                /** @var Uri $uri */
                $uri = $grav['uri'];
                /** @var Grav\Plugin\Form\Forms $form */
                $form = $grav['forms']->getActiveForm();

                $sessionField = base64_encode($uri->url);

                /** @var FormFlash $flash */
                $flash = $form ? $form->getFlash() : null;
                $object = $flash ? [$sessionField => $flash->getLegacyFiles()] : null;
            }
        }

        return $object;
    }
811071
protected function proxy() {
        if (!$this->context) {
            $this->context = new FormContext($this->version, $this->solution['formType']);
        }

        return $this->context;
    }
120975
public function getFlashMessengerMessages() 
    {
        $this->fmContainer = new Container('fms');
        $flashMessages = $this->fmContainer->flashMessages;
        
        if(!empty($flashMessages))
        {
            $flashMessages = array_reverse($flashMessages);
        }
        
        return Json::encode($flashMessages);
    }