Elgg\WidgetDefinition::__get PHP Méthode

__get() public méthode

Magic getter to return the deprecated attribute 'handler'
public __get ( string $name ) : mixed
$name string attribute to get
Résultat mixed
    public function __get($name)
    {
        if ($name === 'handler') {
            // before Elgg 2.2 the widget definitions had the handler attribute as the id
            return $this->id;
        }
        return $this->{$name};
    }