![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/mageworx/module-seoall/Helper/ |
<?php /** * Copyright © MageWorx. All rights reserved. * See LICENSE.txt for license details. */ namespace MageWorx\SeoAll\Helper; /** * SEO All length helper */ class Length extends \Magento\Framework\App\Helper\AbstractHelper { const XML_PATH_LENGTH_META_TITLE_MAX = 'mageworx_seo/all/length/meta_title_max'; const XML_PATH_LENGTH_META_DESCRIPTION_MAX = 'mageworx_seo/all/length/meta_description_max'; const XML_PATH_LENGTH_META_KEYWORDS_MAX = 'mageworx_seo/all/length/meta_keywords_max'; const XML_PATH_LENGTH_H1_MAX = 'mageworx_seo/all/length/h1_max'; const XML_PATH_LENGTH_URL_PATH_MAX = 'mageworx_seo/all/length/url_max'; /** * @return int */ public function getMetaTitleMaxLength() { return (int)$this->scopeConfig->getValue( self::XML_PATH_LENGTH_META_TITLE_MAX ); } /** * @return int */ public function getMetaDescriptionMaxLength() { return (int)$this->scopeConfig->getValue( self::XML_PATH_LENGTH_META_DESCRIPTION_MAX ); } /** * @return int */ public function getMetaKeywordsMaxLength() { return (int)$this->scopeConfig->getValue( self::XML_PATH_LENGTH_META_KEYWORDS_MAX ); } /** * @return int */ public function getH1MaxLength() { return (int)$this->scopeConfig->getValue( self::XML_PATH_LENGTH_H1_MAX ); } /** * @return int */ public function getUrlMaxLength() { return (int)$this->scopeConfig->getValue( self::XML_PATH_LENGTH_URL_PATH_MAX ); } }