RainLab\Pages\Classes\Snippet::getDescription PHP Method

getDescription() public method

This method should not be used in the front-end request handling.
public getDescription ( ) : string
return string
    public function getDescription()
    {
        if ($this->description !== null) {
            return $this->description;
        }
        if ($this->componentClass === null) {
            return null;
        }
        $component = $this->getComponent();
        return $this->description = ComponentHelpers::getComponentDescription($component);
    }