Neos\ContentRepository\Domain\Utility\NodePaths::getNodeNameFromPath PHP 메소드

getNodeNameFromPath() 공개 정적인 메소드

Get the name for a Node based on the given path.
public static getNodeNameFromPath ( string $path ) : string
$path string
리턴 string
    public static function getNodeNameFromPath($path)
    {
        return $path === '/' ? '' : substr($path, strrpos($path, '/') + 1);
    }

Usage Example

예제 #1
0
 /**
  * Returns the name of this node
  *
  * @return string
  */
 public function getName()
 {
     return NodePaths::getNodeNameFromPath($this->path);
 }
All Usage Examples Of Neos\ContentRepository\Domain\Utility\NodePaths::getNodeNameFromPath