Get the panel group starting element.

@return ContentModel|null
1483
protected function getPanelGroup(): ?ContentModel
    {
        $group = ContentModel::findOneBy(
            [
                'tl_content.ptable=?',
                'tl_content.pid=?',
                '(tl_content.type = ? OR tl_content.type = ?)',
                'tl_content.sorting < ?',
            ],
            [
                $this->get('ptable'),
                $this->get('pid'),
                'bs_panel_group_start',
                'bs_panel_group_end',
                $this->get('sorting'),
            ],
            [
                'order' => 'tl_content.sorting DESC',
            ]
        );

        if ($group && $group->type === 'bs_panel_group_start') {
            return $group;
        }

        return null;
    }
337665
protected function getFieldConditionsGroup()
    {
        if (!$this->fieldConditionsGroup) {
            $this->fieldConditionsGroup = $this->selectorFactory->createFieldConditionGroup(
                IFieldConditionGroup::MODE_AND
            );
        }

        return $this->fieldConditionsGroup;
    }
64282
public function getPanel()
    {
        $request = Zend_Controller_Front::getInstance()->getRequest();
        $module = $request->getModuleName();
        if ('default' !== $module) {
            $module = " ($module module)";
        } else {
            $module = '';
        }
        $controller = $request->getControllerName();
        $action = $request->getActionName();

        $panel = "<h4>Event log for {$controller}Controller->{$action}Action() {$module}</h4>";
        $panel .= '<table cellpadding="0" cellspacing="0">'.implode('', $this->_writer->getMessages()).'</table>';
        return $panel;
    }
75506
public function getResource()
    {
        if (is_null($this->resource)) {
            $this->resource = $this->panel->getParent()->getResourcePath();
        }

        return $this->resource;
    }
284598
public function GetSecondLevelDomain () {
		if ($this->domainParts === NULL) $this->initDomainSegments();
		return isset($this->domainParts[1]) ? $this->domainParts[1] : NULL;
	}
1287094
public function firstElementGet()
    {
        $keys = array_keys( $this->collection );
        if( $keys ) {
            return $this->collection[array_shift($keys)];
        }
        return null;
    }
445160
private CmsContainerElementBean getModelBaseElement(
        CmsContainerPageBean modelGroupPage,
        CmsResource modelGroupResource) {

        CmsContainerElementBean result = null;
        for (CmsContainerElementBean element : modelGroupPage.getElements()) {
            if (CmsContainerElement.ModelGroupState.isModelGroup.name().equals(
                element.getIndividualSettings().get(CmsContainerElement.MODEL_GROUP_STATE))) {
                result = element;
                break;
            }
        }
        return result;
    }
467480
public function getTopOrganizationElement()
    {
        $element = $this->getElement($this->topOrganizationFieldName);
        $orgId   = $this->getCurrentTopOrganizationId();
        $orgs    = $this->getTopOrganizations();
        $hidden  = $this->_organizationFromUrl || (count($orgs) < 2);

        if ($this->_organizationFromUrl) {
            return null;
        }

        if ($hidden) {
            if (! $element instanceof \Zend_Form_Element_Hidden) {
                $element = new \Zend_Form_Element_Hidden($this->topOrganizationFieldName);
                $this->addElement($element);
            }

            $orgIds = array_keys($orgs);
            $orgId  = reset($orgIds);

            $element->setValue($orgId);

        } elseif (! $element instanceof \Zend_Form_Element_Select) {
            $element = new \Zend_Form_Element_Select($this->topOrganizationFieldName);
            $element->setLabel($this->topOrganizationDescription);
            $element->setRegisterInArrayValidator(true);
            $element->setRequired(true);
            $element->setMultiOptions($orgs);
            $element->setAttrib('onchange', 'this.form.submit();');

            if ($this->organizationMaxLines > 1) {
                $element->setAttrib('size', min(count($orgs) + 1, $this->organizationMaxLines));
            }
            $element->setValue($orgId);
        }
        $this->addElement($element);

        return $element;
    }
844358
public function getCustomerSegment()
    {
        $segment = new Varien_Object();

        $segmentValues = $this->_getSegmentValues();

        foreach ($segmentValues as $field => $configCallbackPair) {
            if (is_array($configCallbackPair) && Mage::getStoreConfigFlag($configCallbackPair[0])) {
                $segment->setData($field, $configCallbackPair[1]());
            } elseif (is_string($configCallbackPair)) {
                $segment->setData($field, $configCallbackPair);
            }
        }

        Mage::dispatchEvent('ecomdev_varnish_customer_segment', array('segment' => $segment));
        
        return $segment->getData();
    }
1261599
public function getHtml() {
	   if ($this->getPageTotal() < 2) {
	       return null;
       }
       return str_ireplace(array(
				'{total}',
				'{pageSize}',
				'{start}',
				'{end}',
				'{pageTotal}',
				'{previous}',
				'{next}', 
				'{list}',
				'{goto}',
		), array(
				$this->get('total'),
				$this->setPageSize(),
				$this->getStart(),
				$this->getEnd(),
				$this->pageTotal,
				$this->getPrevious(),
				$this->getNext(),
				$this->getPageList(),
				$this->getGoToPage(),
		), $this->get('template'));
	}
87660
public function startingAge()
    {
        if (!is_null($this->rec)) {
            return $this->rec->trans('ages', $this->initialState->startingAge);
        }
        return null;
    }
424468
public function indexAction ()
    {
        $layoutGroups = array_map(
            function ($elementType)
            {
                return [
                    "title"       => ucfirst($elementType) . "s",
                    "elementType" => $elementType,
                    "elements"    => $this->elementTypesModel->getListedElements($elementType),
                ];
            },
            $this->elementTypesModel->getAllElementTypes()
        );


        return $this->twig->render("@core/index.twig", [
            "layoutGroups" => $layoutGroups,
            "downloads"    => $this->downloadModel->getAllDownloads(),
        ]);
    }
628009
public function getPanel()
    {
        \ob_start();
        $title = $this->getTitle();
        $aggregations = Collector::getAggregations();
        $queries = Collector::get();
        if ($queries) {
            $this->extremes = Collector::getTimeExtremes();
        }
        require __DIR__ . '/templates/query.panel.phtml';

        return \ob_get_clean();
    }
169063
public function getPanel()
    {
        \ob_start();
        $router = $this->getRouteResult();
        $url = (string) Request::uri();
        $sorted = [
            'matched', 'url', 'error', 'allowed', 'route', 'params', 'handler',
        ];

        require __DIR__ . '/templates/route.panel.phtml';

        return \ob_get_clean();
    }
81842
public function getPanel(): string
	{
		ob_start(function () {});

		$info = $this->connection->getInfo(true);

		$count = $this->count;

		require __DIR__ . '/templates/MessagePanel.panel.phtml';

		return ob_get_clean();
	}
961305
protected function Location()
    {
        if ($this->Container()->Exists()) {
            return Enums\ContentLocation::Container();
        }
        else if ($this->Area()->Exists()) {
            if ($this->Page()->Exists()) {
                return Enums\ContentLocation::Page();
            }
            return Enums\ContentLocation::Layout();
        }
        return null;
    }
374425
public function getPanel(): string
    {
        $params = [
            'class'                   => get_class($this->translator),
            'listUsedTranslate'       => $this->translator->getListUsedTranslate(),         // list used translate index
            'listAllDefaultTranslate' => $this->translator->getListAllDefaultTranslate(),   // list default translate
            'listDefaultTranslate'    => $this->translator->getListDefaultTranslate(),      // list default translate path
            'dictionary'              => $this->translator->getDictionary(),                // list dictionary
        ];
        $latte = new Engine;
        return $latte->renderToString(__DIR__ . '/PanelTemplate.latte', $params);
    }