lib/Persistence/Doctrine/QueryHandler/BlockQueryHandler.php
public function loadLayoutBlockIds($layoutId, ?int $status = null): array
    {
        $query = $this->connection->createQueryBuilder();
        $query->select('DISTINCT id')
            ->from('ngbm_block')
            ->where(
                $query->expr()->eq('layout_id', ':layout_id')
            )
            ->setParameter('layout_id', $layoutId, Type::INTEGER);

        if ($status !== null) {
            $this->applyStatusCondition($query, $status);
        }

        $result = $query->execute()->fetchAll(PDO::FETCH_ASSOC);

        return array_column($result, 'id');
    }
public function loadLayoutBlockIds($layoutId, ?int $status = null): array
    {
        $query = $this->connection->createQueryBuilder();
        $query->select('DISTINCT id')
            ->from('ngbm_block')
            ->where(
                $query->expr()->eq('layout_id', ':layout_id')
            )
            ->setParameter('layout_id', $layoutId, Type::INTEGER);

        if ($status !== null) {
            $this->applyStatusCondition($query, $status);
        }

        $result = $query->execute()->fetchAll(PDO::FETCH_ASSOC);

        return array_column($result, 'id');
    }
public function loadLayoutBlockIds ( $ layoutId , ? int $ status = null ) : array { $ query = $ this -> connection -> createQueryBuilder ( ) ; $ query -> select ( 'DISTINCT id' ) -> from ( 'ngbm_block' ) -> where ( $ query -> expr ( ) -> eq ( 'layout_id' , ':layout_id' ) ) -> setParameter ( 'layout_id' , $ layoutId , Type :: INTEGER ) ; if ( $ status !== null ) { $ this -> applyStatusCondition ( $ query , $ status ) ; } $ result = $ query -> execute ( ) -> fetchAll ( PDO :: FETCH_ASSOC ) ; return array_column ( $ result , 'id' ) ; }
Loads all layout block IDs.

@param int|string $layoutId
@param int $status

@return array
Loads all layout block IDs .