Update phpdoc for widget->getId (#18295)

The private variable `$_id`  is only set when `$autogenerate` is true, else it stays null, and will be returned by the function.
This commit is contained in:
My6UoT9
2020-09-21 13:56:52 +02:00
committed by GitHub
parent 67728476ec
commit 2ce927788a

View File

@ -156,7 +156,7 @@ class Widget extends Component implements ViewContextInterface
/** /**
* Returns the ID of the widget. * Returns the ID of the widget.
* @param bool $autoGenerate whether to generate an ID if it is not set previously * @param bool $autoGenerate whether to generate an ID if it is not set previously
* @return string ID of the widget. * @return string|null ID of the widget.
*/ */
public function getId($autoGenerate = true) public function getId($autoGenerate = true)
{ {