main/core/Manager/HomeManager.php
public function getCreator($type, $id = null, $content = null, $father = null)
    {
        $variables = ['type' => $type];

        if ($id && !$content) {
            $content = $this->content->find($id);
            $variables['content'] = $content;
        }

        $variables['form'] = $this->formFactory->create(
            HomeContentType::class,
            $content,
            ['id' => $id, 'type' => $type, 'father' => $father]
        )->createView();

        return $this->homeService->isDefinedPush($variables, 'father', $father);
    }
public function getCreator($type, $id = null, $content = null, $father = null)
    {
        $variables = ['type' => $type];

        if ($id && !$content) {
            $content = $this->content->find($id);
            $variables['content'] = $content;
        }

        $variables['form'] = $this->formFactory->create(
            HomeContentType::class,
            $content,
            ['id' => $id, 'type' => $type, 'father' => $father]
        )->createView();

        return $this->homeService->isDefinedPush($variables, 'father', $father);
    }
public function getCreator ( $ type , $ id = null , $ content = null , $ father = null ) { $ variables = [ 'type' => $ type ] ; if ( $ id && ! $ content ) { $ content = $ this -> content -> find ( $ id ) ; $ variables [ 'content' ] = $ content ; } $ variables [ 'form' ] = $ this -> formFactory -> create ( HomeContentType :: class , $ content , [ 'id' => $ id , 'type' => $ type , 'father' => $ father ] ) -> createView ( ) ; return $ this -> homeService -> isDefinedPush ( $ variables , 'father' , $ father ) ; }
Get the creator of contents.

@return array
Get the creator of contents .