Create head for layout.

@return  string
325764
public function head()
    {
        $output = [
            'meta'             => $this->_View->fetch('meta'),
            'assets'           => $this->assets('css'),
            'fetch_css'        => $this->_View->fetch('css'),
            'fetch_css_bottom' => $this->_View->fetch('css_bottom'),
        ];

        return implode('', $output);
    }
890570
public function renderToolStyleHeaderAction()
    {
        // declare the Tool service that we will be using to completely create our tool.
        $melisTool = $this->getServiceLocator()->get('MelisCoreTool');

        // tell the Tool what configuration in the app.tool.php that will be used.
        $melisTool->setMelisToolKey('meliscms', 'meliscms_tool_templates');

        $melisKey = $this->params()->fromRoute('melisKey', '');
        $zoneConfig = $this->params()->fromRoute('zoneconfig', array());

        $view = new ViewModel();
        $view->melisKey = $melisKey;
        $view->title = $melisTool->getTitle();;

        return $view;
    }
448205
public function head($include = null)
    {
        if (null === $include) {
            $include = $this->defaults;
        }

        $include = (array) $include;

        $this->process($include);

        return "\n"
            . ( in_array(self::METAS, $include)   ? $this->metas() : '')
            . ( in_array(self::TITLE, $include)   ? $this->title() : '')
            . ( in_array(self::LINKS, $include)   ? $this->links() : '')
            . ( in_array(self::STYLES, $include)  ? $this->styles() : '')
            . ( in_array(self::SCRIPTS, $include) ? $this->scripts() : '')
            ;
    }
1088326
protected function _prepareLayout()
    {
        parent::_prepareLayout();

        $author = $this->getAuthor();

        if (!$author) {
            return $this;
        }

        $this->pageConfig->getTitle()->set(__('Author: %1', $author->getName()));

        if ($author && ($breadcrumbs = $this->getLayout()->getBlock('breadcrumbs'))) {
            $breadcrumbs->addCrumb('home', [
                'label' => __('Home'),
                'title' => __('Go to Home Page'),
                'link'  => $this->context->getUrlBuilder()->getBaseUrl(),
            ]);

            $breadcrumbs->addCrumb('blog', [
                'label' => __('Blog'),
                'title' => __('Blog'),
            ]);

            $breadcrumbs->addCrumb($author->getId(), [
                'label' => __('Author: %1', $author->getName()),
                'title' => __('Author: %1', $author->getName()),
            ]);
        }

        return $this;
    }
496260
public function layout()
    {
        $exists = (boolean) isset($this->data['layout']);

        return $exists ? $this->data['layout'] : null;
    }
1285596
public function createFacetAction()
    {
        $form = $this->formFactory->create(new FacetType(), new Facet());
        $form->handleRequest($this->request);

        if ($form->isValid()) {
            $facet = $this->facetManager->createFacet($form->get('name')->getData(), $form->get('forceCreationForm')->getData());

            return new JsonResponse(
                array('name' => $facet->getName(), 'position' => $facet->getPosition(), 'id' => $facet->getId())
            );
        }

       return $this->render(
           'ClarolineCoreBundle:Administration\Facet:facetForm.html.twig',
           array('form' => $form->createView())
       );
    }
744874
public function getPageLayout()
    {
        if ($page = $this->getCurrentPage(Page::class)) {
            return $page->getPageLayout();
        }
        
        return Page::create()->getPageLayout();
    }
613354
public function generate()
	{
		if ($this->arrData['space'][0] != '')
		{
			$this->arrStyle[] = 'margin-top:'.$this->arrData['space'][0].'px;';
		}

		if ($this->arrData['space'][1] != '')
		{
			$this->arrStyle[] = 'margin-bottom:'.$this->arrData['space'][1].'px;';
		}

		$this->Template = new \FrontendTemplate($this->strTemplate);
		$this->Template->setData(clone $this->arrData);

		$this->compile();

		$this->Template->inColumn = $this->strColumn;
		$this->Template->style = !empty($this->arrStyle) ? implode(' ', $this->arrStyle) : '';
		$this->Template->class = trim('mod_' . $this->type . ' ' . $this->cssID[1]);
		$this->Template->cssID = ($this->cssID[0] != '') ? ' id="' . $this->cssID[0] . '"' : '';

		if ($this->Template->headline == '')
		{
			$this->Template->headline = $this->headline;
		}

		if ($this->Template->hl == '')
		{
			$this->Template->hl = $this->hl;
		}

		return $this->Template->parse();
	}
438256
public function getHead() {
		if ($this->_head === null) {
			$this->_head = new TablePart();
			$this->_head->setTag(self::TAG_HEAD);
			$this->_head->setHeadPart(true);
		}
		
		return $this->_head;
	}
72199
public function head($options)
    {
        if (isset($options['url'])) {
            $url = $options['url'];
        } elseif (isset($options['resource'])) {
            $url = $this->url.'/api/'.$options['resource'];
            $url_params = array();
            if (isset($options['id'])) {
                $url .= '/'.$options['id'];
            }

            $params = array('filter', 'display', 'sort', 'limit');
            foreach ($params as $p) {
                foreach ($options as $k => $o) {
                    if (strpos($k, $p) !== false) {
                        $url_params[$k] = $options[$k];
                    }
                }
            }
            if (count($url_params) > 0) {
                $url .= '?'.http_build_query($url_params);
            }
        } else {
            throw new PrestashopWebServiceException('Bad parameters given');
        }
        $request = $this->executeRequest($url, array(CURLOPT_CUSTOMREQUEST => 'HEAD', CURLOPT_NOBODY => true));
        $this->checkRequest($request);// check the response validity
        return $request['header'];
    }
194632
public function getHtmlHeadEntrySet()
    {
        $set = parent::getHtmlHeadEntrySet();

        if ($this->input_cell !== null) {
            $set->addEntrySet($this->input_cell->getHtmlHeadEntrySet());
        }

        return $set;
    }
130167
protected function getHeadLinkHelper()
    {
        if ( $this->headLinkHelper )
        {
            return $this->headLinkHelper;
        }

        if ( method_exists( $this->view, 'plugin' ) )
        {
            $this->headLinkHelper = $this->view
                                         ->plugin( 'headLink' );
        }

        if ( ! $this->headLinkHelper instanceof HeadLink )
        {
            $this->headLinkHelper = new HeadLink();
        }

        return $this->headLinkHelper;
    }
997484
public static function head($url, $headers = [], $parameters = null)
    {
        return Request::create('default')->head($url, $headers, $parameters);
    }
10657
public function head() : Box
    {
        // keep track of visited boxes for cycle detection
        $touched = [];
        for ($b = $this; $b->prev !== null; $b = $b->visit($touched)->prev);
        return $b;
    }
1331806
public function getHead()
    {
        $head = new Core\Tag(
            'head',
            array((isset($this->args[0]) ? $this->args[0] : null)),
            array('generate', 'start')
        );
        $head->setAttrs($this->headattrs);

        return $head;
    }
564911
protected function _renderHead()
    {
        $document = $this->getService('anahita:document');
        $html = '<base href="base://" />';
        $html .= '<title>'.$document->getTitle().'</title>';
        $html .= '<meta name="description" content="'.$document->getDescription().'" />';

        /* Google+ Card*/
        $html .= '<meta itemprop="name" content="'.$document->getTitle().'" />';
        $html .= '<meta itemprop="description" content="'.$document->getDescription().'" />';

        if ($document->getImage()) {
            $html .= '<meta itemprop="image" content="'.$document->getImage().'" />';
        }

        /* Twitter Card */
        $twitter_card = ($document->getImage()) ? 'summary_large_image' : 'summary';
        $html .= '<meta name="twitter:card" value="'.$twitter_card.'">';
        $html .= '<meta property="twitter:title" content="'.$document->getTitle().'" />';
        $html .= '<meta property="twitter:description" content="'.$document->getDescription().'" />';
        $html .= '<meta property="og:type" content="'.$document->getType().'" />';
        $html .= '<meta property="twitter:site" content="'.$document->getLink().'" />';

        if ($document->getImage()) {
            $html .= '<meta property="twitter:image:src" content="'.$document->getImage().'" />';
        }


        /* Generic Open Graph tags */
        $html .= '<meta property="og:title" content="'.$document->getTitle().'" />';
        $html .= '<meta property="og:description" content="'.$document->getDescription().'" />';
        $html .= '<meta property="og:type" content="'.$document->getType().'" />';
        $html .= '<meta property="og:url" content="'.$document->getLink().'" />';

        if ($document->getImage()) {
            $html .= '<meta property="og:image" content="'.$document->getImage().'" />';
        }

        return $html;
    }
43814
public function getHtmlHeadEntrySet()
    {
        $set = parent::getHtmlHeadEntrySet();

        $this->createEmbeddedWidgets();
        $set->addEntrySet($this->enter_another_link->getHtmlHeadEntrySet());

        return $set;
    }