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