function LocaleTranslatableProject::toArray
Same name and namespace in other branches
- main core/modules/locale/src/LocaleTranslatableProject.php \Drupal\locale\LocaleTranslatableProject::toArray()
Returns an array representation on the object.
Return value
array{name: string, type: string, core: string, version: string, server_pattern: string, info?: array, langcode: string, status?: bool, weight?: int} The array representation on the object.
File
-
core/
modules/ locale/ src/ LocaleTranslatableProject.php, line 154
Class
- LocaleTranslatableProject
- Translatable project for interface translation.
Namespace
Drupal\localeCode
public function toArray() : array {
return [
'name' => $this->name,
'type' => $this->type,
'core' => $this->core,
'version' => $this->version,
'server_pattern' => $this->server_pattern,
'langcode' => $this->langcode,
'weight' => $this->weight,
'status' => $this->status,
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.