<?php
/**
 * OwnCloud - B2sharebridge App
 *
 * PHP Version 7
 *
 * @category  Nextcloud
 * @package   B2shareBridge
 * @author    EUDAT <b2drop-devel@postit.csc.fi>
 * @copyright 2015 EUDAT
 * @license   AGPL3 https://github.com/EUDAT-B2DROP/b2sharebridge/blob/master/LICENSE
 * @link      https://github.com/EUDAT-B2DROP/b2sharebridge.git
 */
namespace OCA\B2shareBridge\Settings;

use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\Settings\IIconSection;

/**
 * Creates the personal settings section
 *
 * @category Nextcloud
 * @package  B2shareBridge
 * @author   EUDAT <b2drop-devel@postit.csc.fi>
 * @license  AGPL3 https://github.com/EUDAT-B2DROP/b2sharebridge/blob/master/LICENSE
 * @link     https://github.com/EUDAT-B2DROP/b2sharebridge.git
 */
class PersonalSection implements IIconSection
{
    /** 
     * Different language support
     *
     * @var IL10N
     */
    private $_l;

    /**
     * URL generator
     *
     * @var IURLGenerator 
     * */
    private $_url;

    /**
     * {@inheritdoc}
     *
     * @param IURLGenerator $url URL generator used to link to the image
     * @param IL10N         $l   Language support
     */
    public function __construct(IURLGenerator $url, IL10N $l) 
    {
        $this->_url = $url;
        $this->_l = $l;
    }

    /**
     * {@inheritdoc}
     *
     * @return string the app id, 'b2sharebridge'
     */
    public function getID() 
    {
        return 'b2sharebridge';
    }

    /**
     * {@inheritdoc}
     *
     * @return string the section, 'b2sharebridge'
     */
    public function getName() 
    {
        return 'EUDAT';
    }

    /**
     * {@inheritdoc}
     *
     * @return int the arrang priority, 75
     */
    public function getPriority() 
    {
        return 75;
    }

     /**
      * {@inheritdoc}
      *
      * @return URL of the icon shown in the admin settings
      */
    public function getIcon()
    {
        return $this->_url->imagePath('b2sharebridge', 'eudat_logo.png');
    }
}

Add personal section based on IIconSection interface
Add personal section based on IIconSection interface
