forked from pkp/pkp-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkp#9890 Register new Navigation component from ui-library
- Loading branch information
1 parent
be0d569
commit 4f02dc5
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
/** | ||
* @file classes/components/PkpNavigation.php | ||
* | ||
* Copyright (c) 2014-2021 Simon Fraser University | ||
* Copyright (c) 2000-2021 John Willinsky | ||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. | ||
* | ||
* @class PkpNavigation | ||
* | ||
* @ingroup classes_components | ||
* | ||
* @brief A Panel component for rendering navigation menu | ||
*/ | ||
|
||
namespace PKP\components; | ||
|
||
class PkpNavigation | ||
{ | ||
/** | ||
* Aria-label for the navigation | ||
* | ||
* @var string | ||
*/ | ||
public $ariaLabel; | ||
|
||
/** | ||
* Navigation Links | ||
* | ||
* @var array | ||
*/ | ||
public $links; | ||
|
||
/** | ||
* Retrieve the configuration data to be used when initializing this | ||
* handler on the frontend | ||
* | ||
* @return array Configuration data | ||
*/ | ||
public function getConfig() | ||
{ | ||
$config = []; | ||
$config['ariaLabel'] = $this->ariaLabel; | ||
$config['links'] = $this->links; | ||
|
||
return $config; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters