DashboardNavModule::registerSection PHP Method

registerSection() public method

Adds a section to the sections info array to output in the dashboard.
public registerSection ( $section )
$section
    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;
    }