src/Integration/SemanticHtml5.php
public function getGridElements($dataContainer)
    {
        $elements = array();

        if ($dataContainer->activeRecord) {
            $query = <<<SQL
SELECT
    c.*, g.title as gridTitle, g.columns as gridColumns
FROM
    tl_content c
LEFT JOIN
    tl_columnset g
ON
    g.id = c.bootstrap_grid
WHERE
    (c.ptable=? OR c.ptable=?)
    AND c.pid=?
    AND c.type=?
    AND c.sh5_tag=?
    AND c.bootstrap_isGridElement=?
    AND c.sorting < ?
ORDER BY
    sorting
SQL;

            $ptable = $GLOBALS['TL_DCA'][$dataContainer->table]['config']['ptable'];
            $result = \Database::getInstance()
                ->prepare($query)
                ->execute(
                    $ptable,
                    $ptable == 'tl_article' ? '' : $ptable,
                    $dataContainer->activeRecord->pid,
                    'semantic_html5',
                    'start',
                    'row',
                    $dataContainer->activeRecord->sorting
                );

            while ($result->next()) {
                $headline              = deserialize($result->headline, true);
                $elements[$result->id] = ($headline['value'] ?: ('ID ' . $result->id)) . ' [' .
                    $result->gridColumns . ' - ' . $result->gridTitle . ']';
            }
        }

        return $elements;
    }
public function getGridElements($dataContainer)
    {
        $elements = array();

        if ($dataContainer->activeRecord) {
            $query = <<<SQL
SELECT
    c.*, g.title as gridTitle, g.columns as gridColumns
FROM
    tl_content c
LEFT JOIN
    tl_columnset g
ON
    g.id = c.bootstrap_grid
WHERE
    (c.ptable=? OR c.ptable=?)
    AND c.pid=?
    AND c.type=?
    AND c.sh5_tag=?
    AND c.bootstrap_isGridElement=?
    AND c.sorting < ?
ORDER BY
    sorting
SQL;

            $ptable = $GLOBALS['TL_DCA'][$dataContainer->table]['config']['ptable'];
            $result = \Database::getInstance()
                ->prepare($query)
                ->execute(
                    $ptable,
                    $ptable == 'tl_article' ? '' : $ptable,
                    $dataContainer->activeRecord->pid,
                    'semantic_html5',
                    'start',
                    'row',
                    $dataContainer->activeRecord->sorting
                );

            while ($result->next()) {
                $headline              = deserialize($result->headline, true);
                $elements[$result->id] = ($headline['value'] ?: ('ID ' . $result->id)) . ' [' .
                    $result->gridColumns . ' - ' . $result->gridTitle . ']';
            }
        }

        return $elements;
    }
Get all grid elements.

@param \DataContainer $dataContainer The data container driver.

@return array

@SuppressWarnings(PHPMD.Superglobals)