private function getReservedTitle($contentTypeName)
    {
        $defaultTitles = $this->defaultTitles->get($contentTypeName);
        $title = array_shift($defaultTitles);
        $existing = $this->repository->findOneBy(['title' => $title]);

        if ($existing || $title === null) {
            $title = trim(strip_tags($this->apiClient->get('/1/veryshort')));
        }
        $this->defaultTitles->set($contentTypeName, $defaultTitles);

        return $title;
    }
private function getReservedTitle($contentTypeName)
    {
        $defaultTitles = $this->defaultTitles->get($contentTypeName);
        $title = array_shift($defaultTitles);
        $existing = $this->repository->findOneBy(['title' => $title]);

        if ($existing || $title === null) {
            $title = trim(strip_tags($this->apiClient->get('/1/veryshort')));
        }
        $this->defaultTitles->set($contentTypeName, $defaultTitles);

        return $title;
    }
private function getReservedTitle ( $ contentTypeName ) { $ defaultTitles = $ this -> defaultTitles -> get ( $ contentTypeName ) ; $ title = array_shift ( $ defaultTitles ) ; $ existing = $ this -> repository -> findOneBy ( [ 'title' => $ title ] ) ; if ( $ existing || $ title === null ) { $ title = trim ( strip_tags ( $ this -> apiClient -> get ( '/1/veryshort' ) ) ) ; } $ this -> defaultTitles -> set ( $ contentTypeName , $ defaultTitles ) ; return $ title ; }
Get the title for a 'Block' ContentType. Check if the desired ones
aren't present in the database yet, and return them in order.

@param string $contentTypeName

@return string
Get the title for a Block ContentType . Check if the desired ones aren t present in the database yet and return them in order .