<?php
namespace Newland\NeosMetaTags\ViewHelpers;

/*
 * This file is part of the "neos-meta-tags" package.
 *
 * For the full copyright and license information, please read the
 * LICENSE.txt file that was distributed with this source code.
 */

use Neos\Flow\Annotations as Flow;
use Neos\FluidAdaptor\Core\ViewHelper\AbstractViewHelper;
use Newland\NeosCommon\Eel\Helper\NodeUtilityHelper;
use Newland\NeosMetaTags\Service\MetaDataService;

class IsDetailPageViewHelper extends AbstractViewHelper
{
    /**
     * @var MetaDataService
     * @Flow\Inject()
     */
    protected $metaDataService;

    public function render(): bool
    {
        return $this->metaDataService->isDetailPage($this->controllerContext->getRequest());
    }
}
