public function registerSection($section)
{
$requiredArrayKeys = ['title', 'description', 'url', 'section'];
// Make sure we have what we need.
foreach ($requiredArrayKeys as $key) {
if (!array_key_exists($key, $section)) {
return;
}
}
self::$sectionsInfo[$section['section']] = $section;
}