function InfoParserDynamic::getRequiredKeys
Same name in other branches
- 9 core/lib/Drupal/Core/Extension/InfoParserDynamic.php \Drupal\Core\Extension\InfoParserDynamic::getRequiredKeys()
- 10 core/lib/Drupal/Core/Extension/InfoParserDynamic.php \Drupal\Core\Extension\InfoParserDynamic::getRequiredKeys()
- 11.x core/lib/Drupal/Core/Extension/InfoParserDynamic.php \Drupal\Core\Extension\InfoParserDynamic::getRequiredKeys()
Returns an array of keys required to exist in .info.yml file.
Return value
array An array of required keys.
1 call to InfoParserDynamic::getRequiredKeys()
- InfoParserDynamic::parse in core/
lib/ Drupal/ Core/ Extension/ InfoParserDynamic.php - Parses Drupal module, theme and profile .info.yml files.
File
-
core/
lib/ Drupal/ Core/ Extension/ InfoParserDynamic.php, line 138
Class
- InfoParserDynamic
- Parses dynamic .info.yml files that might change during the page request.
Namespace
Drupal\Core\ExtensionCode
protected function getRequiredKeys() {
return [
'type',
'name',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.