getPluralItemName

@access protected
@return string
506150
protected function getPluralItemName() {
        if (count($this->injectedData) == 1) {
            return $this->getItemName();
        } else {
            $lastChar = strtolower(substr($this->getItemName(), strlen($this->getItemName()) -1, 1));
            if ($lastChar == 's') {
                return $this->getItemName() . 'es';
            } else if ($lastChar == 'y') {
                return substr($this->getItemName(), 0, strlen($this->getItemName()) - 1) . 'ies';
            } else {
                return $this->getItemName().'s';
            }
        }
    }
435444
protected function _getProductListItemHandleName()
    {
        $handleCode = $this->_scopeConfig->getValue(
            self::PRODUCTLISTITEM_LAYOUT_CONFIG_PATH,
            ScopeInterface::SCOPE_STORE
        );
        if (!$handleCode) {
            $handleCode = 1;
        }

        if ($this->_isSearch()) {
            $return = self::PRODUCTSEARCHITEM_LAYOUT_HANDLE_PREFIX . $handleCode;
        } else {
            $return = self::PRODUCTLISTITEM_LAYOUT_HANDLE_PREFIX . $handleCode;
        }

        return $return;
    }
706617
protected function getItemsCode(): string
    {
        $code = '';
        if ($this->countItems() > 0) {
            foreach ($this->getAllItems() as $item) {
                if (is_string($item)) {
                    $code .= $item;
                } else {
                    $code .= (string) $item;
                }
            }
        }
        return $code;
    }
1053769
public function getModelPlural()
    {
        if (is_null($this->_modelPlural)) {
            $name = $this->getModelSimpleName();
            $names = Text::camelCaseToSeparator($name, '#');
            $names = explode('#', $names);
            $last = ucfirst(Text::plural(strtolower(array_pop($names))));
            $names[] = $last;
            $this->_modelPlural = lcfirst(implode('', $names));
        }
        return $this->_modelPlural;
    }
672466
public function displayName()
    {
        if ($this->displayName) {
            $name = $this->displayName;
        } else {
            $name = $this->propertyIdent();
        }

        if ($this->p()->l10n()) {
            $name .= '['.$this->lang().']';
        }

        if ($this->multiple()) {
            $name .= '[]';
        }

        return $name;
    }
495390
private function getVariableName() {
		$arrBacktrace = debug_backtrace();

		//possible 'included' functions
		$arrInclude = array("include","include_once","require","require_once");

		//check for any included/required files. if found, get array of the last included file (they contain the right line numbers)
		for($i=count($arrBacktrace)-1; $i>=0; $i--) {
			$arrCurrent = $arrBacktrace[$i];
			if(array_key_exists("function", $arrCurrent) &&
				(in_array($arrCurrent["function"], $arrInclude) || (0 != strcasecmp($arrCurrent["function"], "dbug"))))
				continue;

			$arrFile = $arrCurrent;

			break;
		}

		if(isset($arrFile)) {
			$arrLines = file($arrFile["file"]);
			$code = $arrLines[($arrFile["line"]-1)];

			//find call to dBug class
			preg_match('/\bnew dBug\s*\(\s*(.+)\s*\);/i', $code, $arrMatches);


			if (isset($arrMatches[1])) {
				return $arrMatches[1];
			}

		}
		return "";
	}
1256029
public function getFullName(): string
    {
        $list = [
            $this->getTitle(),
            $this->getFirstName(),
            $this->getMiddleName(),
            $this->getLastName(),
        ];
        return implode(' ', array_filter($list));
    }
36586
protected function contextObjectName(): string {
		$objectName = $this->getClassName($this->model());
		
		return $this->lcFirstName($objectName);
	}
1026586
public function getCollectionName()
    {
        if (isset($this->vObj)) {
            return isset($this->vObj->cvName) ? $this->vObj->cvName : null;
        }

        return isset($this->cvName) ? $this->cvName : null;
    }
873355
public function getName()
	{
		$class = get_class($this);

		$class = explode('\\', $class);

		$class = $class[count($class) - 1];

		$class = str_replace(array('Supra', 'Package'), '', $class);

		$inflector = new Inflector();
		$name = $inflector->tableize($class);

		return $name;
	}
1179483
public function getName()
    {
        if ($this->isClosure()) {
            return '{closure}';
        }
        if (isset($this->node->namespacedName)) {
            return $this->node->namespacedName;
        }
        return $this->node->name;
    }
491905
public function getName()
	{
		$items = $this->getRefItems( 'text', 'name' );

		if ( ( $item = reset( $items ) ) !== false ) {
			return $item->getContent();
		}

		return $this->getLabel();
	}
626031
public function getItemLabelAttribute()
    {
        if( $this->type == 'link' ) {
            return $this->link_text;
        }

        if( $this->type == 'page' && ! is_null($this->page) )
            return get_translation_name('title', $this->language_code, $this->page->translations->toArray());

        return '';
    }
1124920
public function getName()
    {
        if ($this->property->getMultilingual()) {
            return $this->languageNamespace .
            ':' . $this->localization .
            '-' . (null !== $this->additionalPrefix ? $this->additionalPrefix . '-' : '') .
            $this->property->getName();
        } else {
            return (null !== $this->additionalPrefix ? $this->additionalPrefix . '-' : '') . $this->property->getName();
        }
    }
111601
public function getPlatformName()
    {
        static $name = null;
        if (!$name) {
            $name = $this->connection->getDatabasePlatform()->getName();
        }
        return $name;
    }
1080865
public function getName()
    {
        return $this->getCachedProperty(
            'name',
            function () {
                return trim($this->query('atom:name', self::SINGLE | self::REQUIRED)->textContent);
            }
        );
    }
473589
public function getDisplayName()
    {
        $data = array_filter([
            $this->get(self::PROPERTY_FIRSTNAME),
            $this->get(self::PROPERTY_LASTNAME),
        ]);

        return implode(' ', $data);
    }