It is generally recommended to explicitly declare the visibility for methods.
Adding explicit visibility (private, protected, or public) is generally
recommend to communicate to other developers how, and from where this method
is intended to be used.
Loading history...
37
if ($this->isLanguageSetToAll()) {
38
return 'Language is set to all. Visible in every language';
39
}
40
return 'this is a flexible content element but translations are handled with overlay records.';
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.