Yosymfony\Spress\Core\ContentManager\Permalink\PermalinkGenerator::getPlacehoders PHP Method

getPlacehoders() private method

private getPlacehoders ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
$item Yosymfony\Spress\Core\DataSource\ItemInterface
    private function getPlacehoders(ItemInterface $item)
    {
        $fileInfo = new \SplFileInfo($item->getPath(ItemInterface::SNAPSHOT_PATH_RELATIVE_AFTER_CONVERT));
        $result = [':path' => (new StringWrapper($fileInfo->getPath()))->deletePrefix('.'), ':extension' => $fileInfo->getExtension(), ':basename' => $fileInfo->getBasename('.' . $fileInfo->getExtension()), ':collection' => $item->getCollection(), ':categories' => $this->getCategoriesPath($item), ':title' => $this->getTitleSlugified($item)];
        if ($this->isItemWithDate($item)) {
            $time = $this->getDateAttribute($item);
            $result += [':year' => $time->format('Y'), ':month' => $time->format('m'), ':day' => $time->format('d'), ':i_month' => $time->format('n'), ':i_day' => $time->format('j')];
        }
        return $result;
    }