/**
* Overridable function to return a localized title for this entity.
*
+ * @param bool $plural
+ * Whether to return a plural title.
* @return string
*/
- protected static function getEntityTitle() {
+ protected static function getEntityTitle($plural = FALSE) {
return static::getEntityName();
}
$info = [
'name' => static::getEntityName(),
'title' => static::getEntityTitle(),
+ 'titlePlural' => static::getEntityTitle(TRUE),
'type' => self::stripNamespace(get_parent_class(static::class)),
];
$reflection = new \ReflectionClass(static::class);