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;
}