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

getNoHtmlExtensionAttribute() private method

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