Bolt\Legacy\Storage::getBlocksTitle PHP Method

getBlocksTitle() private method

Get the title for a 'Block' contenttype. Check if the desired ones aren't present in the database yet, and return them in order.
private getBlocksTitle ( ) : string
return string
    private function getBlocksTitle()
    {
        $title = array_shift($this->preferredTitles);
        // Prevent 'Fatal error: Uncaught Error: Cannot pass parameter 3 by reference in …'
        $pager = [];
        // If we're out of preferredTitles or if the record already exists.
        if ($title === null || $this->getContent('blocks', '', $pager, ['title' => $title])) {
            $title = trim(strip_tags($this->app['prefill']->get('/1/veryshort')));
        }
        return $title;
    }