Returns the class name without namespace.
Name | Type | Description |
---|---|---|
of | string | The class name |
Source code:
<?php
namespace My\Name\Space;
class SomeClass
{
}
Documentation source:
{{ shortName(of:'\My\Name\Space\SomeClass') }}
Result:
SomeClass