Craft\Neo_BlockModel::getSiblings PHP Method

getSiblings() public method

Returns the block's siblings.
public getSiblings ( ) : craft\ElementCriteriaModel
return craft\ElementCriteriaModel
    public function getSiblings()
    {
        // If the request is in Live Preview mode, use the Neo-extended criteria model, which supports Live Preview mode
        if (craft()->neo->isPreviewMode()) {
            if (!isset($this->_liveCriteria['siblings'])) {
                $criteria = craft()->neo->getCriteria();
                $criteria->setAllElements($this->_allElements);
                $criteria->siblingOf = $this;
                $this->_liveCriteria['siblings'] = $criteria;
            }
            return $this->_liveCriteria['siblings'];
        }
        return parent::getSiblings();
    }