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

getPreservePathTitleAttribute() private method

private getPreservePathTitleAttribute ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
$item Yosymfony\Spress\Core\DataSource\ItemInterface
    private function getPreservePathTitleAttribute(ItemInterface $item)
    {
        $attributes = $item->getAttributes();
        if (isset($attributes['preserve_path_title']) === true) {
            if (is_bool($attributes['preserve_path_title']) === false) {
                throw new AttributeValueException('Invalid value. Expected bolean.', 'preserve_path_title', $item->getPath());
            }
            return $attributes['preserve_path_title'];
        }
        return $this->defaultPreservePathTitle;
    }